lemmy-js-client 0.20.0-modlog-combined.0 → 0.20.0-move-community-hidden.1

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 (163) hide show
  1. package/README.md +13 -4
  2. package/dist/http.d.ts +189 -466
  3. package/dist/http.js +1109 -418
  4. package/dist/index.d.ts +26 -25
  5. package/dist/other_types.d.ts +81 -0
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +1 -1
  8. package/dist/types/AdminPurgeComment.d.ts +1 -1
  9. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  10. package/dist/types/AdminPurgePerson.d.ts +1 -1
  11. package/dist/types/AdminPurgePost.d.ts +1 -1
  12. package/dist/types/Comment.d.ts +9 -0
  13. package/dist/types/CommentReplyView.d.ts +5 -3
  14. package/dist/types/CommentReport.d.ts +1 -0
  15. package/dist/types/CommentReportView.d.ts +4 -3
  16. package/dist/types/CommentSlimView.d.ts +22 -0
  17. package/dist/types/CommentView.d.ts +5 -3
  18. package/dist/types/Community.d.ts +24 -6
  19. package/dist/types/CommunityReport.d.ts +22 -0
  20. package/dist/types/CommunityReportId.d.ts +4 -0
  21. package/dist/types/CommunityReportView.d.ts +14 -0
  22. package/dist/types/CommunitySortType.d.ts +1 -1
  23. package/dist/types/CommunityView.d.ts +1 -2
  24. package/dist/types/CommunityVisibility.d.ts +1 -1
  25. package/dist/types/CreateCommentReport.d.ts +1 -0
  26. package/dist/types/CreatePostReport.d.ts +1 -0
  27. package/dist/types/CreateSite.d.ts +3 -2
  28. package/dist/types/DeleteImageParams.d.ts +0 -1
  29. package/dist/types/EditSite.d.ts +13 -8
  30. package/dist/types/FederationError.d.ts +2 -2
  31. package/dist/types/GetComments.d.ts +5 -0
  32. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  33. package/dist/types/GetModlog.d.ts +27 -3
  34. package/dist/types/GetModlogResponse.d.ts +5 -0
  35. package/dist/types/GetPostResponse.d.ts +0 -2
  36. package/dist/types/GetPosts.d.ts +12 -2
  37. package/dist/types/GetPostsResponse.d.ts +2 -2
  38. package/dist/types/GetRandomCommunity.d.ts +1 -0
  39. package/dist/types/GetSiteResponse.d.ts +2 -2
  40. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  41. package/dist/types/ImageDetails.d.ts +1 -0
  42. package/dist/types/InboxCombinedView.d.ts +13 -0
  43. package/dist/types/InboxDataType.d.ts +4 -0
  44. package/dist/types/LemmyErrorType.d.ts +5 -5
  45. package/dist/types/ListCommunities.d.ts +5 -0
  46. package/dist/types/ListInbox.d.ts +11 -0
  47. package/dist/types/ListInboxResponse.d.ts +12 -0
  48. package/dist/types/ListPersonContent.d.ts +2 -2
  49. package/dist/types/ListPersonContentResponse.d.ts +5 -0
  50. package/dist/types/ListPersonSaved.d.ts +2 -2
  51. package/dist/types/ListPersonSavedResponse.d.ts +7 -2
  52. package/dist/types/ListReports.d.ts +20 -2
  53. package/dist/types/ListReportsResponse.d.ts +5 -0
  54. package/dist/types/LocalImage.d.ts +0 -1
  55. package/dist/types/LocalSite.d.ts +33 -0
  56. package/dist/types/LocalUser.d.ts +17 -0
  57. package/dist/types/LocalUserView.d.ts +0 -4
  58. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  59. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  60. package/dist/types/ModAdd.d.ts +1 -1
  61. package/dist/types/ModAddCommunity.d.ts +1 -1
  62. package/dist/types/ModAddCommunityView.d.ts +1 -1
  63. package/dist/types/ModAddView.d.ts +1 -1
  64. package/dist/types/ModBan.d.ts +1 -1
  65. package/dist/types/ModBanFromCommunity.d.ts +1 -1
  66. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  67. package/dist/types/ModBanView.d.ts +1 -1
  68. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  69. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  70. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  71. package/dist/types/ModFeaturePost.d.ts +1 -1
  72. package/dist/types/ModFeaturePostView.d.ts +1 -1
  73. package/dist/types/ModLockPost.d.ts +1 -1
  74. package/dist/types/ModLockPostView.d.ts +1 -1
  75. package/dist/types/ModRemoveComment.d.ts +1 -1
  76. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  77. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  78. package/dist/types/ModRemovePost.d.ts +1 -1
  79. package/dist/types/ModRemovePostView.d.ts +1 -1
  80. package/dist/types/ModTransferCommunity.d.ts +1 -1
  81. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  82. package/dist/types/ModlogActionType.d.ts +1 -1
  83. package/dist/types/ModlogCombinedView.d.ts +3 -3
  84. package/dist/types/PaginationCursor.d.ts +1 -4
  85. package/dist/types/Person.d.ts +4 -2
  86. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  87. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  88. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +9 -7
  89. package/dist/types/PersonContentType.d.ts +1 -1
  90. package/dist/types/PersonPostMention.d.ts +13 -0
  91. package/dist/types/PersonPostMentionId.d.ts +4 -0
  92. package/dist/types/PersonPostMentionView.d.ts +34 -0
  93. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  94. package/dist/types/PersonView.d.ts +0 -2
  95. package/dist/types/Post.d.ts +10 -0
  96. package/dist/types/PostPaginationCursor.d.ts +7 -0
  97. package/dist/types/PostReport.d.ts +1 -0
  98. package/dist/types/PostReportView.d.ts +4 -3
  99. package/dist/types/PostSortType.d.ts +1 -1
  100. package/dist/types/PostView.d.ts +5 -3
  101. package/dist/types/PrivateMessage.d.ts +1 -0
  102. package/dist/types/ReportCombinedView.d.ts +4 -1
  103. package/dist/types/ReportType.d.ts +4 -0
  104. package/dist/types/ResendVerificationEmail.d.ts +7 -0
  105. package/dist/types/SaveUserSettings.d.ts +8 -0
  106. package/dist/types/Search.d.ts +12 -6
  107. package/dist/types/SearchCombinedView.d.ts +13 -0
  108. package/dist/types/SearchResponse.d.ts +7 -10
  109. package/dist/types/SearchSortType.d.ts +4 -0
  110. package/dist/types/SearchSortType.js +3 -0
  111. package/dist/types/Site.d.ts +2 -2
  112. package/dist/types/SiteView.d.ts +0 -2
  113. package/dist/types/SuccessResponse.d.ts +1 -1
  114. package/dist/types/UploadImageResponse.d.ts +0 -1
  115. package/package.json +9 -4
  116. package/dist/types/CommentAggregates.d.ts +0 -17
  117. package/dist/types/CommentReplyResponse.d.ts +0 -7
  118. package/dist/types/CommunityAggregates.d.ts +0 -28
  119. package/dist/types/GetPersonMentions.d.ts +0 -10
  120. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  121. package/dist/types/GetPrivateMessages.d.ts +0 -10
  122. package/dist/types/GetReplies.d.ts +0 -10
  123. package/dist/types/GetRepliesResponse.d.ts +0 -7
  124. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  125. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  126. package/dist/types/ModHideCommunity.d.ts +0 -14
  127. package/dist/types/ModHideCommunityId.d.ts +0 -1
  128. package/dist/types/ModHideCommunityView.d.ts +0 -11
  129. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  130. package/dist/types/PersonAggregates.d.ts +0 -9
  131. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  132. package/dist/types/PersonMentionId.d.ts +0 -4
  133. package/dist/types/PersonMentionResponse.d.ts +0 -7
  134. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  135. package/dist/types/PostAggregates.d.ts +0 -18
  136. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  137. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  138. package/dist/types/SiteAggregates.d.ts +0 -27
  139. /package/dist/types/{CommentAggregates.js → CommentSlimView.js} +0 -0
  140. /package/dist/types/{CommentReplyResponse.js → CommunityReport.js} +0 -0
  141. /package/dist/types/{LocalUserVoteDisplayMode.js → CommunityReportId.js} +0 -0
  142. /package/dist/types/{CommunityAggregates.js → CommunityReportView.js} +0 -0
  143. /package/dist/types/{GetPersonMentions.js → GetCommentsSlimResponse.js} +0 -0
  144. /package/dist/types/{GetPersonMentionsResponse.js → InboxCombinedView.js} +0 -0
  145. /package/dist/types/{ModHideCommunityId.js → InboxDataType.js} +0 -0
  146. /package/dist/types/{GetPrivateMessages.js → ListInbox.js} +0 -0
  147. /package/dist/types/{GetReplies.js → ListInboxResponse.js} +0 -0
  148. /package/dist/types/{GetRepliesResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
  149. /package/dist/types/{MarkPersonMentionAsRead.js → MarkPersonPostMentionAsRead.js} +0 -0
  150. /package/dist/types/{ModHideCommunity.js → ModChangeCommunityVisibility.js} +0 -0
  151. /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
  152. /package/dist/types/{ModHideCommunityView.js → ModChangeCommunityVisibilityView.js} +0 -0
  153. /package/dist/types/{PersonAggregates.js → PersonCommentMention.js} +0 -0
  154. /package/dist/types/{PersonContentCombinedPaginationCursor.js → PersonCommentMentionId.js} +0 -0
  155. /package/dist/types/{PersonMention.js → PersonCommentMentionView.js} +0 -0
  156. /package/dist/types/{PersonMentionResponse.js → PersonPostMention.js} +0 -0
  157. /package/dist/types/{PersonMentionId.js → PersonPostMentionId.js} +0 -0
  158. /package/dist/types/{PersonMentionView.js → PersonPostMentionView.js} +0 -0
  159. /package/dist/types/{PostAggregates.js → PersonSavedCombinedView.js} +0 -0
  160. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → PostPaginationCursor.js} +0 -0
  161. /package/dist/types/{ReportCombinedPaginationCursor.js → ReportType.js} +0 -0
  162. /package/dist/types/{PrivateMessagesResponse.js → ResendVerificationEmail.js} +0 -0
  163. /package/dist/types/{SiteAggregates.js → SearchCombinedView.js} +0 -0
package/dist/http.js CHANGED
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
9
+ return function (target, key) { decorator(target, key, paramIndex); }
10
+ };
2
11
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
12
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
13
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -22,6 +31,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
22
31
  var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
23
32
  Object.defineProperty(exports, "__esModule", { value: true });
24
33
  exports.LemmyHttp = void 0;
34
+ const tsoa_1 = require("tsoa");
25
35
  const other_types_1 = require("./other_types");
26
36
  var HttpType;
27
37
  (function (HttpType) {
@@ -33,13 +43,14 @@ var HttpType;
33
43
  /**
34
44
  * Helps build lemmy HTTP requests.
35
45
  */
36
- class LemmyHttp {
46
+ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
37
47
  /**
38
48
  * Generates a new instance of LemmyHttp.
39
49
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
40
50
  * @param headers optional headers. Should contain `x-real-ip` and `x-forwarded-for` .
41
51
  */
42
52
  constructor(baseUrl, options) {
53
+ super();
43
54
  _LemmyHttp_instances.add(this);
44
55
  _LemmyHttp_apiUrl.set(this, void 0);
45
56
  _LemmyHttp_headers.set(this, {});
@@ -53,946 +64,725 @@ class LemmyHttp {
53
64
  }
54
65
  }
55
66
  /**
56
- * Gets the site, and your user data.
57
- *
58
- * `HTTP.GET /site`
67
+ * @summary Gets the site, and your user data.
59
68
  */
60
69
  getSite(options) {
61
70
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
62
71
  }
63
72
  /**
64
- * Create your site.
65
- *
66
- * `HTTP.POST /site`
73
+ * @summary Create your site.
67
74
  */
68
75
  createSite(form, options) {
69
76
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
70
77
  }
71
78
  /**
72
- * Edit your site.
73
- *
74
- * `HTTP.PUT /site`
79
+ * @summary Edit your site.
75
80
  */
76
81
  editSite(form, options) {
77
82
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
78
83
  }
79
84
  /**
80
- * Leave the Site admins.
81
- *
82
- * `HTTP.POST /admin/leave`
85
+ * @summary Leave the Site admins.
83
86
  */
84
87
  leaveAdmin(options) {
85
88
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
86
89
  }
87
90
  /**
88
- * Generate a TOTP / two-factor secret.
91
+ * @summary Generate a TOTP / two-factor secret.
89
92
  *
93
+ * Generate a TOTP / two-factor secret.
90
94
  * Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
91
- *
92
- * `HTTP.POST /account/auth/totp/generate`
93
95
  */
94
96
  generateTotpSecret(options) {
95
97
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
96
98
  }
97
99
  /**
98
- * Get data of current user.
99
- *
100
- * `HTTP.GET /account`
100
+ * @summary Get data of current user.
101
101
  */
102
102
  getMyUser(options) {
103
103
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
104
104
  }
105
105
  /**
106
+ * @summary Export a backup of your user settings.
107
+ *
106
108
  * Export a backup of your user settings, including your saved content,
107
109
  * followed communities, and blocks.
108
- *
109
- * `HTTP.GET /account/settings/export`
110
110
  */
111
111
  exportSettings(options) {
112
112
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
113
113
  }
114
114
  /**
115
- * Import a backup of your user settings.
116
- *
117
- * `HTTP.POST /account/settings/import`
115
+ * @summary Import a backup of your user settings.
118
116
  */
119
117
  importSettings(form, options) {
120
118
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
121
119
  }
122
120
  /**
123
- * List login tokens for your user
124
- *
125
- * `HTTP.GET /account/list_logins`
121
+ * @summary List login tokens for your user
126
122
  */
127
123
  listLogins(options) {
128
124
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
129
125
  }
130
126
  /**
131
- * Returns an error message if your auth token is invalid
132
- *
133
- * `HTTP.GET /account/validate_auth`
127
+ * @summary Returns an error message if your auth token is invalid
134
128
  */
135
129
  validateAuth(options) {
136
130
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
137
131
  }
138
132
  /**
139
- * List all the media for your user
140
- *
141
- * `HTTP.GET /account/list_media`
133
+ * @summary List all the media for your user
142
134
  */
143
135
  listMedia(form = {}, options) {
144
136
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
145
137
  }
146
138
  /**
147
- * List all the media known to your instance.
148
- *
149
- * `HTTP.GET /admin/list_all_media`
139
+ * @summary List all the media known to your instance.
150
140
  */
151
141
  listAllMedia(form = {}, options) {
152
142
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
153
143
  }
154
144
  /**
155
- * Enable / Disable TOTP / two-factor authentication.
145
+ * @summary Enable / Disable TOTP / two-factor authentication.
156
146
  *
157
147
  * To enable, you need to first call `/account/auth/totp/generate` and then pass a valid token to this.
158
148
  *
159
149
  * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
160
- *
161
- * `HTTP.POST /account/auth/totp/update`
162
150
  */
163
151
  updateTotp(form, options) {
164
152
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
165
153
  }
166
154
  /**
167
- * Get the modlog.
168
- *
169
- * `HTTP.GET /modlog`
155
+ * @summary Get the modlog.
170
156
  */
171
157
  getModlog(form = {}, options) {
172
158
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
173
159
  }
174
160
  /**
175
- * Search lemmy.
176
- *
177
- * `HTTP.GET /search`
161
+ * @summary Search lemmy.
178
162
  */
179
163
  search(form, options) {
180
164
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
181
165
  }
182
166
  /**
183
- * Fetch a non-local / federated object.
184
- *
185
- * `HTTP.GET /resolve_object`
167
+ * @summary Fetch a non-local / federated object.
186
168
  */
187
169
  resolveObject(form, options) {
188
170
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
189
171
  }
190
172
  /**
191
- * Create a new community.
192
- *
193
- * `HTTP.POST /community`
173
+ * @summary Create a new community.
194
174
  */
195
175
  createCommunity(form, options) {
196
176
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
197
177
  }
198
178
  /**
199
- * Get / fetch a community.
200
- *
201
- * `HTTP.GET /community`
179
+ * @summary Get / fetch a community.
202
180
  */
203
181
  getCommunity(form = {}, options) {
204
182
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
205
183
  }
206
184
  /**
207
- * Edit a community.
208
- *
209
- * `HTTP.PUT /community`
185
+ * @summary Edit a community.
210
186
  */
211
187
  editCommunity(form, options) {
212
188
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
213
189
  }
214
190
  /**
215
- * List communities, with various filters.
216
- *
217
- * `HTTP.GET /community/list`
191
+ * @summary List communities, with various filters.
218
192
  */
219
193
  listCommunities(form = {}, options) {
220
194
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
221
195
  }
222
196
  /**
223
- * Follow / subscribe to a community.
224
- *
225
- * `HTTP.POST /community/follow`
197
+ * @summary Follow / subscribe to a community.
226
198
  */
227
199
  followCommunity(form, options) {
228
200
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
229
201
  }
230
- getCommunityPendingFollowsCount(community_id, options) {
231
- const form = { community_id };
202
+ /**
203
+ * @summary Get a community's pending follows count.
204
+ */
205
+ getCommunityPendingFollowsCount(form, options) {
232
206
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
233
207
  }
208
+ /**
209
+ * @summary Get a community's pending followers.
210
+ */
234
211
  listCommunityPendingFollows(form, options) {
235
212
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
236
213
  }
214
+ /**
215
+ * @summary Approve a community pending follow request.
216
+ */
237
217
  approveCommunityPendingFollow(form, options) {
238
218
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
239
219
  }
240
220
  /**
241
- * Block a community.
242
- *
243
- * `HTTP.POST /account/block/community`
221
+ * @summary Block a community.
244
222
  */
245
223
  blockCommunity(form, options) {
246
224
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
247
225
  }
248
226
  /**
249
- * Delete a community.
250
- *
251
- * `HTTP.POST /community/delete`
227
+ * @summary Delete a community.
252
228
  */
253
229
  deleteCommunity(form, options) {
254
230
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
255
231
  }
256
232
  /**
257
- * Hide a community from public / "All" view. Admins only.
258
- *
259
- * `HTTP.PUT /community/hide`
233
+ * @summary Hide a community from public / "All" view. Admins only.
260
234
  */
261
235
  hideCommunity(form, options) {
262
236
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
263
237
  }
264
238
  /**
265
- * A moderator remove for a community.
266
- *
267
- * `HTTP.POST /community/remove`
239
+ * @summary A moderator remove for a community.
268
240
  */
269
241
  removeCommunity(form, options) {
270
242
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
271
243
  }
272
244
  /**
273
- * Transfer your community to an existing moderator.
274
- *
275
- * `HTTP.POST /community/transfer`
245
+ * @summary Transfer your community to an existing moderator.
276
246
  */
277
247
  transferCommunity(form, options) {
278
248
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
279
249
  }
280
250
  /**
281
- * Ban a user from a community.
282
- *
283
- * `HTTP.POST /community/ban_user`
251
+ * @summary Ban a user from a community.
284
252
  */
285
253
  banFromCommunity(form, options) {
286
254
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
287
255
  }
288
256
  /**
289
- * Add a moderator to your community.
290
- *
291
- * `HTTP.POST /community/mod`
257
+ * @summary Add a moderator to your community.
292
258
  */
293
259
  addModToCommunity(form, options) {
294
260
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
295
261
  }
296
262
  /**
297
- * Get a random community.
298
- *
299
- * `HTTP.GET /community/random`
263
+ * @summary Get a random community.
300
264
  */
301
265
  getRandomCommunity(form, options) {
302
266
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
303
267
  }
304
268
  /**
305
- * Create a post.
306
- *
307
- * `HTTP.POST /post`
269
+ * @summary Create a post.
308
270
  */
309
271
  createPost(form, options) {
310
272
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
311
273
  }
312
274
  /**
313
- * Get / fetch a post.
314
- *
315
- * `HTTP.GET /post`
275
+ * @summary Get / fetch a post.
316
276
  */
317
277
  getPost(form = {}, options) {
318
278
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
319
279
  }
320
280
  /**
321
- * Edit a post.
322
- *
323
- * `HTTP.PUT /post`
281
+ * @summary Edit a post.
324
282
  */
325
283
  editPost(form, options) {
326
284
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
327
285
  }
328
286
  /**
329
- * Delete a post.
330
- *
331
- * `HTTP.POST /post/delete`
287
+ * @summary Delete a post.
332
288
  */
333
289
  deletePost(form, options) {
334
290
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
335
291
  }
336
292
  /**
337
- * A moderator remove for a post.
338
- *
339
- * `HTTP.POST /post/remove`
293
+ * @summary A moderator remove for a post.
340
294
  */
341
295
  removePost(form, options) {
342
296
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
343
297
  }
344
298
  /**
345
- * Mark a post as read.
346
- *
347
- * `HTTP.POST /post/mark_as_read`
299
+ * @summary Mark a post as read.
348
300
  */
349
301
  markPostAsRead(form, options) {
350
302
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
351
303
  }
352
304
  /**
353
- * Mark multiple posts as read.
354
- *
355
- * `HTTP.POST /post/mark_as_read/many`
305
+ * @summary Mark multiple posts as read.
356
306
  */
357
307
  markManyPostAsRead(form, options) {
358
308
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
359
309
  }
360
310
  /**
361
- * Hide a post from list views.
362
- *
363
- * `HTTP.POST /post/hide`
311
+ * @summary Hide a post from list views.
364
312
  */
365
313
  hidePost(form, options) {
366
314
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
367
315
  }
368
316
  /**
369
- * A moderator can lock a post ( IE disable new comments ).
370
- *
371
- * `HTTP.POST /post/lock`
317
+ * @summary A moderator can lock a post ( IE disable new comments ).
372
318
  */
373
319
  lockPost(form, options) {
374
320
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
375
321
  }
376
322
  /**
377
- * A moderator can feature a community post ( IE stick it to the top of a community ).
378
- *
379
- * `HTTP.POST /post/feature`
323
+ * @summary A moderator can feature a community post ( IE stick it to the top of a community ).
380
324
  */
381
325
  featurePost(form, options) {
382
326
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
383
327
  }
384
328
  /**
385
- * Get / fetch posts, with various filters.
386
- *
387
- * `HTTP.GET /post/list`
329
+ * @summary Get / fetch posts, with various filters.
388
330
  */
389
331
  getPosts(form = {}, options) {
390
332
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
391
333
  }
392
334
  /**
393
- * Like / vote on a post.
394
- *
395
- * `HTTP.POST /post/like`
335
+ * @summary Like / vote on a post.
396
336
  */
397
337
  likePost(form, options) {
398
338
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
399
339
  }
400
340
  /**
401
- * List a post's likes. Admin-only.
402
- *
403
- * `HTTP.GET /post/like/list`
341
+ * @summary List a post's likes. Admin-only.
404
342
  */
405
343
  listPostLikes(form, options) {
406
344
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
407
345
  }
408
346
  /**
409
- * Save a post.
410
- *
411
- * `HTTP.PUT /post/save`
347
+ * @summary Save a post.
412
348
  */
413
349
  savePost(form, options) {
414
350
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
415
351
  }
416
352
  /**
417
- * Report a post.
418
- *
419
- * `HTTP.POST /post/report`
353
+ * @summary Report a post.
420
354
  */
421
355
  createPostReport(form, options) {
422
356
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
423
357
  }
424
358
  /**
425
- * Resolve a post report. Only a mod can do this.
426
- *
427
- * `HTTP.PUT /post/report/resolve`
359
+ * @summary Resolve a post report. Only a mod can do this.
428
360
  */
429
361
  resolvePostReport(form, options) {
430
362
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
431
363
  }
432
364
  /**
433
- * Fetch metadata for any given site.
434
- *
435
- * `HTTP.GET /post/site_metadata`
365
+ * @summary Fetch metadata for any given site.
436
366
  */
437
367
  getSiteMetadata(form, options) {
438
368
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
439
369
  }
440
370
  /**
441
- * Create a comment.
442
- *
443
- * `HTTP.POST /comment`
371
+ * @summary Create a comment.
444
372
  */
445
373
  createComment(form, options) {
446
374
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
447
375
  }
448
376
  /**
449
- * Edit a comment.
450
- *
451
- * `HTTP.PUT /comment`
377
+ * @summary Edit a comment.
452
378
  */
453
379
  editComment(form, options) {
454
380
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
455
381
  }
456
382
  /**
457
- * Delete a comment.
458
- *
459
- * `HTTP.POST /comment/delete`
383
+ * @summary Delete a comment.
460
384
  */
461
385
  deleteComment(form, options) {
462
386
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
463
387
  }
464
388
  /**
465
- * A moderator remove for a comment.
466
- *
467
- * `HTTP.POST /comment/remove`
389
+ * @summary A moderator remove for a comment.
468
390
  */
469
391
  removeComment(form, options) {
470
392
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
471
393
  }
472
394
  /**
473
- * Mark a comment as read.
474
- *
475
- * `HTTP.POST /comment/mark_as_read`
395
+ * @summary Mark a comment as read.
476
396
  */
477
397
  markCommentReplyAsRead(form, options) {
478
398
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
479
399
  }
480
400
  /**
481
- * Like / vote on a comment.
482
- *
483
- * `HTTP.POST /comment/like`
401
+ * @summary Like / vote on a comment.
484
402
  */
485
403
  likeComment(form, options) {
486
404
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
487
405
  }
488
406
  /**
489
- * List a comment's likes. Admin-only.
490
- *
491
- * `HTTP.GET /comment/like/list`
407
+ * @summary List a comment's likes. Admin-only.
492
408
  */
493
409
  listCommentLikes(form, options) {
494
410
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
495
411
  }
496
412
  /**
497
- * Save a comment.
498
- *
499
- * `HTTP.PUT /comment/save`
413
+ * @summary Save a comment.
500
414
  */
501
415
  saveComment(form, options) {
502
416
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
503
417
  }
504
418
  /**
505
- * Distinguishes a comment (speak as moderator)
506
- *
507
- * `HTTP.POST /comment/distinguish`
419
+ * @summary Distinguishes a comment (speak as moderator)
508
420
  */
509
421
  distinguishComment(form, options) {
510
422
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
511
423
  }
512
424
  /**
513
- * Get / fetch comments.
514
- *
515
- * `HTTP.GET /comment/list`
425
+ * @summary Get / fetch comments.
516
426
  */
517
427
  getComments(form = {}, options) {
518
428
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
519
429
  }
520
430
  /**
521
- * Get / fetch comment.
522
- *
523
- * `HTTP.GET /comment`
431
+ * @summary Get / fetch comments, but without the post or community.
432
+ */
433
+ getCommentsSlim(form = {}, options) {
434
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
435
+ }
436
+ /**
437
+ * @summary Get / fetch comment.
524
438
  */
525
439
  getComment(form, options) {
526
440
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
527
441
  }
528
442
  /**
529
- * Report a comment.
530
- *
531
- * `HTTP.POST /comment/report`
443
+ * @summary Report a comment.
532
444
  */
533
445
  createCommentReport(form, options) {
534
446
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
535
447
  }
536
448
  /**
537
- * Resolve a comment report. Only a mod can do this.
538
- *
539
- * `HTTP.PUT /comment/report/resolve`
449
+ * @summary Resolve a comment report. Only a mod can do this.
540
450
  */
541
451
  resolveCommentReport(form, options) {
542
452
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
543
453
  }
544
454
  /**
545
- * Get / fetch private messages.
546
- *
547
- * `HTTP.GET /private_message/list`
548
- */
549
- getPrivateMessages(form, options) {
550
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form, options);
551
- }
552
- /**
553
- * Create a private message.
554
- *
555
- * `HTTP.POST /private_message`
455
+ * @summary Create a private message.
556
456
  */
557
457
  createPrivateMessage(form, options) {
558
458
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
559
459
  }
560
460
  /**
561
- * Edit a private message.
562
- *
563
- * `HTTP.PUT /private_message`
461
+ * @summary Edit a private message.
564
462
  */
565
463
  editPrivateMessage(form, options) {
566
464
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
567
465
  }
568
466
  /**
569
- * Delete a private message.
570
- *
571
- * `HTTP.POST /private_message/delete`
467
+ * @summary Delete a private message.
572
468
  */
573
469
  deletePrivateMessage(form, options) {
574
470
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
575
471
  }
576
472
  /**
577
- * Mark a private message as read.
578
- *
579
- * `HTTP.POST /private_message/mark_as_read`
473
+ * @summary Mark a private message as read.
580
474
  */
581
475
  markPrivateMessageAsRead(form, options) {
582
476
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
583
477
  }
584
478
  /**
585
- * Create a report for a private message.
586
- *
587
- * `HTTP.POST /private_message/report`
479
+ * @summary Create a report for a private message.
588
480
  */
589
481
  createPrivateMessageReport(form, options) {
590
482
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
591
483
  }
592
484
  /**
593
- * Resolve a report for a private message.
594
- *
595
- * `HTTP.PUT /private_message/report/resolve`
485
+ * @summary Resolve a report for a private message.
596
486
  */
597
487
  resolvePrivateMessageReport(form, options) {
598
488
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
599
489
  }
600
490
  /**
601
- * Register a new user.
602
- *
603
- * `HTTP.POST /account/auth/register`
491
+ * @summary Register a new user.
604
492
  */
605
493
  register(form, options) {
606
494
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
607
495
  }
608
496
  /**
609
- * Log into lemmy.
610
- *
611
- * `HTTP.POST /account/auth/login`
497
+ * @summary Log into lemmy.
612
498
  */
613
499
  login(form, options) {
614
500
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
615
501
  }
616
502
  /**
617
- * Invalidate the currently used auth token.
618
- *
619
- * `HTTP.POST /account/auth/logout`
503
+ * @summary Invalidate the currently used auth token.
620
504
  */
621
505
  logout(options) {
622
506
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
623
507
  }
624
508
  /**
625
- * Get the details for a person.
626
- *
627
- * `HTTP.GET /person`
509
+ * @summary Get the details for a person.
628
510
  */
629
511
  getPersonDetails(form = {}, options) {
630
512
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
631
513
  }
632
514
  /**
633
- * List the content for a person.
634
- *
635
- * `HTTP.GET /person/content`
515
+ * @summary List the content for a person.
636
516
  */
637
517
  listPersonContent(form = {}, options) {
638
518
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
639
519
  }
640
520
  /**
641
- * Get mentions for your user.
642
- *
643
- * `HTTP.GET /account/mention`
521
+ * @summary Mark a person mention as read.
644
522
  */
645
- getPersonMentions(form, options) {
646
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/mention", form, options);
523
+ markCommentMentionAsRead(form, options) {
524
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
647
525
  }
648
526
  /**
649
- * Mark a person mention as read.
650
- *
651
- * `HTTP.POST /account/mention/mark_as_read`
527
+ * @summary Mark a person post body mention as read.
652
528
  */
653
- markPersonMentionAsRead(form, options) {
654
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read", form, options);
529
+ markPostMentionAsRead(form, options) {
530
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
655
531
  }
656
532
  /**
657
- * Mark a person mention as read.
658
- *
659
- * `HTTP.POST /account/mention/mark_as_read`
660
- */
661
- markPersonAllMentionAsRead(options) {
662
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read", {}, options);
663
- }
664
- /**
665
- * Get comment replies.
666
- *
667
- * `HTTP.GET /account/replies`
668
- */
669
- getReplies(form, options) {
670
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/replies", form, options);
671
- }
672
- /**
673
- * Ban a person from your site.
674
- *
675
- * `HTTP.POST /admin/ban`
533
+ * @summary Ban a person from your site.
676
534
  */
677
535
  banPerson(form, options) {
678
536
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
679
537
  }
680
538
  /**
681
- * Get a list of banned users
682
- *
683
- * `HTTP.GET /admin/banned`
539
+ * @summary Get a list of banned users.
684
540
  */
685
541
  getBannedPersons(options) {
686
542
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
687
543
  }
688
544
  /**
689
- * Block a person.
690
- *
691
- * `HTTP.POST /account/block/person`
545
+ * @summary Block a person.
692
546
  */
693
547
  blockPerson(form, options) {
694
548
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
695
549
  }
696
550
  /**
697
- * Fetch a Captcha.
698
- *
699
- * `HTTP.GET /account/auth/get_captcha`
551
+ * @summary Fetch a Captcha.
700
552
  */
701
553
  getCaptcha(options) {
702
554
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
703
555
  }
704
556
  /**
705
- * Delete your account.
706
- *
707
- * `HTTP.POST /account/delete`
557
+ * @summary Delete your account.
708
558
  */
709
559
  deleteAccount(form, options) {
710
560
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
711
561
  }
712
562
  /**
713
- * Reset your password.
714
- *
715
- * `HTTP.POST /account/auth/password_reset`
563
+ * @summary Reset your password.
716
564
  */
717
565
  passwordReset(form, options) {
718
566
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
719
567
  }
720
568
  /**
721
- * Change your password from an email / token based reset.
722
- *
723
- * `HTTP.POST /account/auth/password_change`
569
+ * @summary Change your password from an email / token based reset.
724
570
  */
725
571
  passwordChangeAfterReset(form, options) {
726
572
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
727
573
  }
728
574
  /**
729
- * Mark all replies as read.
730
- *
731
- * `HTTP.POST /account/mention/mark_as_read/all`
575
+ * @summary Mark all replies as read.
732
576
  */
733
- markAllAsRead(options) {
734
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read/all", {}, options);
577
+ markAllNotificationsAsRead(options) {
578
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
735
579
  }
736
580
  /**
737
- * Save your user settings.
738
- *
739
- * `HTTP.PUT /account/settings/save`
581
+ * @summary Save your user settings.
740
582
  */
741
583
  saveUserSettings(form, options) {
742
584
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
743
585
  }
744
586
  /**
745
- * Change your user password.
746
- *
747
- * `HTTP.PUT /account/auth/change_password`
587
+ * @summary Change your user password.
748
588
  */
749
589
  changePassword(form, options) {
750
590
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
751
591
  }
752
592
  /**
753
- * Get counts for your reports
754
- *
755
- * `HTTP.GET /account/report_count`
593
+ * @summary Get counts for your reports.
756
594
  */
757
595
  getReportCount(form, options) {
758
596
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
759
597
  }
760
598
  /**
761
- * Get your unread counts
762
- *
763
- * `HTTP.GET /account/unread_count`
599
+ * @summary Get your unread counts.
764
600
  */
765
601
  getUnreadCount(options) {
766
602
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
767
603
  }
768
604
  /**
769
- * Verify your email
770
- *
771
- * `HTTP.POST /account/auth/verify_email`
605
+ * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
606
+ */
607
+ listInbox(form, options) {
608
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
609
+ }
610
+ /**
611
+ * @summary Verify your email
772
612
  */
773
613
  verifyEmail(form, options) {
774
614
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
775
615
  }
776
616
  /**
777
- * List your saved content.
778
- *
779
- * `HTTP.GET /account/auth/saved`
617
+ * @summary Resend a verification email.
618
+ */
619
+ resendVerificationEmail(form, options) {
620
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
621
+ }
622
+ /**
623
+ * @summary List your saved content.
780
624
  */
781
625
  listPersonSaved(form, options) {
782
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/saved", form, options);
626
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
783
627
  }
784
628
  /**
785
- * Add an admin to your site.
786
- *
787
- * `HTTP.POST /admin/add`
629
+ * @summary Add an admin to your site.
788
630
  */
789
631
  addAdmin(form, options) {
790
632
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
791
633
  }
792
634
  /**
793
- * Get the unread registration applications count.
794
- *
795
- * `HTTP.GET /admin/registration_application/count`
635
+ * @summary Get the unread registration applications count.
796
636
  */
797
637
  getUnreadRegistrationApplicationCount(options) {
798
638
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
799
639
  }
800
640
  /**
801
- * List the registration applications.
802
- *
803
- * `HTTP.GET /admin/registration_application/list`
641
+ * @summary List the registration applications.
804
642
  */
805
643
  listRegistrationApplications(form, options) {
806
644
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
807
645
  }
808
646
  /**
809
- * Approve a registration application
810
- *
811
- * `HTTP.PUT /admin/registration_application/approve`
647
+ * @summary Approve a registration application
812
648
  */
813
649
  approveRegistrationApplication(form, options) {
814
650
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
815
651
  }
816
652
  /**
817
- * Get the application a user submitted when they first registered their account
818
- *
819
- * `HTTP.GET /admin/registration_application`
653
+ * @summary Get the application a user submitted when they first registered their account
820
654
  */
821
655
  getRegistrationApplication(form, options) {
822
656
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
823
657
  }
824
658
  /**
825
- * Purge / Delete a person from the database.
826
- *
827
- * `HTTP.POST /admin/purge/person`
659
+ * @summary Purge / Delete a person from the database.
828
660
  */
829
661
  purgePerson(form, options) {
830
662
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
831
663
  }
832
664
  /**
833
- * Purge / Delete a community from the database.
834
- *
835
- * `HTTP.POST /admin/purge/community`
665
+ * @summary Purge / Delete a community from the database.
836
666
  */
837
667
  purgeCommunity(form, options) {
838
668
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
839
669
  }
840
670
  /**
841
- * Purge / Delete a post from the database.
842
- *
843
- * `HTTP.POST /admin/purge/post`
671
+ * @summary Purge / Delete a post from the database.
844
672
  */
845
673
  purgePost(form, options) {
846
674
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
847
675
  }
848
676
  /**
849
- * Purge / Delete a comment from the database.
850
- *
851
- * `HTTP.POST /admin/purge/comment`
677
+ * @summary Purge / Delete a comment from the database.
852
678
  */
853
679
  purgeComment(form, options) {
854
680
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
855
681
  }
856
682
  /**
857
- * Create a new custom emoji
858
- *
859
- * `HTTP.POST /custom_emoji`
683
+ * @summary Create a new custom emoji.
860
684
  */
861
685
  createCustomEmoji(form, options) {
862
686
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
863
687
  }
864
688
  /**
865
- * Edit an existing custom emoji
866
- *
867
- * `HTTP.PUT /custom_emoji`
689
+ * @summary Edit an existing custom emoji.
868
690
  */
869
691
  editCustomEmoji(form, options) {
870
692
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
871
693
  }
872
694
  /**
873
- * Delete a custom emoji
874
- *
875
- * `HTTP.Post /custom_emoji/delete`
695
+ * @summary Delete a custom emoji.
876
696
  */
877
697
  deleteCustomEmoji(form, options) {
878
698
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
879
699
  }
880
700
  /**
881
- * List custom emojis
882
- *
883
- * `HTTP.GET /custom_emoji/list`
701
+ * @summary List custom emojis
884
702
  */
885
703
  listCustomEmojis(form, options) {
886
704
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
887
705
  }
888
706
  /**
889
- * Create a new tagline
890
- *
891
- * `HTTP.POST /admin/tagline`
707
+ * @summary Create a new tagline
892
708
  */
893
709
  createTagline(form, options) {
894
710
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
895
711
  }
896
712
  /**
897
- * Edit an existing tagline
898
- *
899
- * `HTTP.PUT /admin/tagline`
713
+ * @summary Edit an existing tagline
900
714
  */
901
715
  editTagline(form, options) {
902
716
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
903
717
  }
904
718
  /**
905
- * Delete a tagline
906
- *
907
- * `HTTP.Post /admin/tagline/delete`
719
+ * @summary Delete a tagline
908
720
  */
909
721
  deleteTagline(form, options) {
910
722
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
911
723
  }
912
724
  /**
913
- * List taglines
914
- *
915
- * `HTTP.GET /admin/tagline/list`
725
+ * @summary List taglines.
916
726
  */
917
727
  listTaglines(form, options) {
918
728
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
919
729
  }
920
730
  /**
921
- * Create a new oauth provider method
922
- *
923
- * `HTTP.POST /oauth_provider`
731
+ * @summary Create a new oauth provider method
924
732
  */
925
733
  createOAuthProvider(form, options) {
926
734
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
927
735
  }
928
736
  /**
929
- * Edit an existing oauth provider method
930
- *
931
- * `HTTP.PUT /oauth_provider`
737
+ * @summary Edit an existing oauth provider method
932
738
  */
933
739
  editOAuthProvider(form, options) {
934
740
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
935
741
  }
936
742
  /**
937
- * Delete an oauth provider method
938
- *
939
- * `HTTP.Post /oauth_provider/delete`
743
+ * @summary Delete an oauth provider method
940
744
  */
941
745
  deleteOAuthProvider(form, options) {
942
746
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
943
747
  }
944
748
  /**
945
- * Authenticate with OAuth
946
- *
947
- * `HTTP.Post /oauth/authenticate`
749
+ * @summary Authenticate with OAuth
948
750
  */
949
751
  authenticateWithOAuth(form, options) {
950
752
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
951
753
  }
952
754
  /**
953
- * Fetch federated instances.
954
- *
955
- * `HTTP.Get /federated_instances`
755
+ * @summary Fetch federated instances.
956
756
  */
957
757
  getFederatedInstances(options) {
958
758
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
959
759
  }
960
760
  /**
961
- * List user reports.
962
- *
963
- * `HTTP.GET /report/list`
761
+ * @summary List user reports.
964
762
  */
965
763
  listReports(form, options) {
966
764
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
967
765
  }
968
766
  /**
969
- * Block an instance as user.
970
- *
971
- * `HTTP.Post /account/block/instance`
767
+ * @summary Block an instance as user.
972
768
  */
973
769
  userBlockInstance(form, options) {
974
770
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
975
771
  }
976
772
  /**
977
- * Globally block an instance as admin.
978
- *
979
- * `HTTP.Post /admin/instance/block`
773
+ * @summary Globally block an instance as admin.
980
774
  */
981
775
  adminBlockInstance(form, options) {
982
776
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
983
777
  }
984
778
  /**
985
- * Globally allow an instance as admin.
986
- *
987
- * `HTTP.Post /admin/instance/allow`
779
+ * @summary Globally allow an instance as admin.
988
780
  */
989
781
  adminAllowInstance(form, options) {
990
782
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
991
783
  }
992
784
  /**
993
- * Upload new user avatar.
994
- *
995
- * `HTTP.Post /account/avatar`
785
+ * @summary Upload new user avatar.
996
786
  */
997
787
  uploadUserAvatar(image, options) {
998
788
  return __awaiter(this, void 0, void 0, function* () {
@@ -1000,9 +790,7 @@ class LemmyHttp {
1000
790
  });
1001
791
  }
1002
792
  /**
1003
- * Delete the user avatar.
1004
- *
1005
- * `HTTP.Delete /account/avatar`
793
+ * @summary Delete the user avatar.
1006
794
  */
1007
795
  deleteUserAvatar(options) {
1008
796
  return __awaiter(this, void 0, void 0, function* () {
@@ -1010,9 +798,7 @@ class LemmyHttp {
1010
798
  });
1011
799
  }
1012
800
  /**
1013
- * Upload new user banner.
1014
- *
1015
- * `HTTP.Post /account/banner`
801
+ * @summary Upload new user banner.
1016
802
  */
1017
803
  uploadUserBanner(image, options) {
1018
804
  return __awaiter(this, void 0, void 0, function* () {
@@ -1020,9 +806,7 @@ class LemmyHttp {
1020
806
  });
1021
807
  }
1022
808
  /**
1023
- * Delete the user banner.
1024
- *
1025
- * `HTTP.Delete /account/banner`
809
+ * @summary Delete the user banner.
1026
810
  */
1027
811
  deleteUserBanner(options) {
1028
812
  return __awaiter(this, void 0, void 0, function* () {
@@ -1030,9 +814,7 @@ class LemmyHttp {
1030
814
  });
1031
815
  }
1032
816
  /**
1033
- * Upload new community icon.
1034
- *
1035
- * `HTTP.Post /community/icon`
817
+ * @summary Upload new community icon.
1036
818
  */
1037
819
  uploadCommunityIcon(image, options) {
1038
820
  return __awaiter(this, void 0, void 0, function* () {
@@ -1040,9 +822,7 @@ class LemmyHttp {
1040
822
  });
1041
823
  }
1042
824
  /**
1043
- * Delete the community icon.
1044
- *
1045
- * `HTTP.Delete /community/icon`
825
+ * @summary Delete the community icon.
1046
826
  */
1047
827
  deleteCommunityIcon(options) {
1048
828
  return __awaiter(this, void 0, void 0, function* () {
@@ -1050,9 +830,7 @@ class LemmyHttp {
1050
830
  });
1051
831
  }
1052
832
  /**
1053
- * Upload new community banner.
1054
- *
1055
- * `HTTP.Post /community/banner`
833
+ * @summary Upload new community banner.
1056
834
  */
1057
835
  uploadCommunityBanner(image, options) {
1058
836
  return __awaiter(this, void 0, void 0, function* () {
@@ -1060,9 +838,7 @@ class LemmyHttp {
1060
838
  });
1061
839
  }
1062
840
  /**
1063
- * Delete the community banner.
1064
- *
1065
- * `HTTP.Delete /community/banner`
841
+ * @summary Delete the community banner.
1066
842
  */
1067
843
  deleteCommunityBanner(options) {
1068
844
  return __awaiter(this, void 0, void 0, function* () {
@@ -1070,9 +846,7 @@ class LemmyHttp {
1070
846
  });
1071
847
  }
1072
848
  /**
1073
- * Upload new site icon.
1074
- *
1075
- * `HTTP.Post /site/icon`
849
+ * @summary Upload new site icon.
1076
850
  */
1077
851
  uploadSiteIcon(image, options) {
1078
852
  return __awaiter(this, void 0, void 0, function* () {
@@ -1080,9 +854,7 @@ class LemmyHttp {
1080
854
  });
1081
855
  }
1082
856
  /**
1083
- * Delete the site icon.
1084
- *
1085
- * `HTTP.Delete /site/icon`
857
+ * @summary Delete the site icon.
1086
858
  */
1087
859
  deleteSiteIcon(options) {
1088
860
  return __awaiter(this, void 0, void 0, function* () {
@@ -1090,9 +862,7 @@ class LemmyHttp {
1090
862
  });
1091
863
  }
1092
864
  /**
1093
- * Upload new site banner.
1094
- *
1095
- * `HTTP.Post /site/banner`
865
+ * @summary Upload new site banner.
1096
866
  */
1097
867
  uploadSiteBanner(image, options) {
1098
868
  return __awaiter(this, void 0, void 0, function* () {
@@ -1100,9 +870,7 @@ class LemmyHttp {
1100
870
  });
1101
871
  }
1102
872
  /**
1103
- * Delete the site banner.
1104
- *
1105
- * `HTTP.Delete /site/banner`
873
+ * @summary Delete the site banner.
1106
874
  */
1107
875
  deleteSiteBanner(options) {
1108
876
  return __awaiter(this, void 0, void 0, function* () {
@@ -1110,9 +878,7 @@ class LemmyHttp {
1110
878
  });
1111
879
  }
1112
880
  /**
1113
- * Upload an image to the server.
1114
- *
1115
- * `HTTP.Post /image`
881
+ * @summary Upload an image to the server.
1116
882
  */
1117
883
  uploadImage(image, options) {
1118
884
  return __awaiter(this, void 0, void 0, function* () {
@@ -1120,9 +886,7 @@ class LemmyHttp {
1120
886
  });
1121
887
  }
1122
888
  /**
1123
- * Delete a pictrs image
1124
- *
1125
- * `HTTP.Delete /image`
889
+ * @summary Delete a pictrs image
1126
890
  */
1127
891
  deleteImage(form, options) {
1128
892
  return __awaiter(this, void 0, void 0, function* () {
@@ -1130,9 +894,7 @@ class LemmyHttp {
1130
894
  });
1131
895
  }
1132
896
  /**
1133
- * Health check for image functionality
1134
- *
1135
- * `HTTP.Get /image/health`
897
+ * @summary Health check for image functionality
1136
898
  */
1137
899
  imageHealth(options) {
1138
900
  return __awaiter(this, void 0, void 0, function* () {
@@ -1145,17 +907,23 @@ class LemmyHttp {
1145
907
  setHeaders(headers) {
1146
908
  __classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
1147
909
  }
1148
- }
910
+ };
1149
911
  exports.LemmyHttp = LemmyHttp;
1150
- _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHttp_fetchFunction = new WeakMap(), _LemmyHttp_instances = new WeakSet(), _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
912
+ _LemmyHttp_apiUrl = new WeakMap();
913
+ _LemmyHttp_headers = new WeakMap();
914
+ _LemmyHttp_fetchFunction = new WeakMap();
915
+ _LemmyHttp_instances = new WeakSet();
916
+ _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
1151
917
  return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
1152
- }, _LemmyHttp_upload = function _LemmyHttp_upload(path_1, _a, options_1) {
918
+ };
919
+ _LemmyHttp_upload = function _LemmyHttp_upload(path_1, _a, options_1) {
1153
920
  return __awaiter(this, arguments, void 0, function* (path, { image }, options) {
1154
921
  const formData = createFormData(image);
1155
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") }));
1156
923
  return response.json();
1157
924
  });
1158
- }, _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
925
+ };
926
+ _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
1159
927
  return __awaiter(this, void 0, void 0, function* () {
1160
928
  var _a;
1161
929
  let response;
@@ -1181,6 +949,929 @@ _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHtt
1181
949
  }
1182
950
  });
1183
951
  };
952
+ __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)())
958
+ ], LemmyHttp.prototype, "getSite", null);
959
+ __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)())
965
+ ], LemmyHttp.prototype, "createSite", null);
966
+ __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)())
972
+ ], LemmyHttp.prototype, "editSite", null);
973
+ __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)())
978
+ ], LemmyHttp.prototype, "leaveAdmin", null);
979
+ __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)())
984
+ ], LemmyHttp.prototype, "generateTotpSecret", null);
985
+ __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)())
990
+ ], LemmyHttp.prototype, "getMyUser", null);
991
+ __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)())
996
+ ], LemmyHttp.prototype, "exportSettings", null);
997
+ __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)())
1003
+ ], LemmyHttp.prototype, "importSettings", null);
1004
+ __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)())
1009
+ ], LemmyHttp.prototype, "listLogins", null);
1010
+ __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)())
1015
+ ], LemmyHttp.prototype, "validateAuth", null);
1016
+ __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)())
1022
+ ], LemmyHttp.prototype, "listMedia", null);
1023
+ __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)())
1036
+ ], LemmyHttp.prototype, "updateTotp", null);
1037
+ __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)())
1044
+ ], LemmyHttp.prototype, "getModlog", null);
1045
+ __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)())
1052
+ ], LemmyHttp.prototype, "search", null);
1053
+ __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)())
1060
+ ], LemmyHttp.prototype, "resolveObject", null);
1061
+ __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)())
1067
+ ], LemmyHttp.prototype, "createCommunity", null);
1068
+ __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)())
1075
+ ], LemmyHttp.prototype, "getCommunity", null);
1076
+ __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)())
1082
+ ], LemmyHttp.prototype, "editCommunity", null);
1083
+ __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)())
1090
+ ], LemmyHttp.prototype, "listCommunities", null);
1091
+ __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)())
1098
+ ], LemmyHttp.prototype, "followCommunity", null);
1099
+ __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)())
1105
+ ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1106
+ __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)())
1112
+ ], LemmyHttp.prototype, "listCommunityPendingFollows", null);
1113
+ __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)())
1119
+ ], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
1120
+ __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)())
1126
+ ], LemmyHttp.prototype, "blockCommunity", null);
1127
+ __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)())
1133
+ ], LemmyHttp.prototype, "deleteCommunity", null);
1134
+ __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)())
1140
+ ], LemmyHttp.prototype, "hideCommunity", null);
1141
+ __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)())
1147
+ ], LemmyHttp.prototype, "removeCommunity", null);
1148
+ __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)())
1154
+ ], LemmyHttp.prototype, "transferCommunity", null);
1155
+ __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)())
1161
+ ], LemmyHttp.prototype, "banFromCommunity", null);
1162
+ __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)())
1168
+ ], LemmyHttp.prototype, "addModToCommunity", null);
1169
+ __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)())
1176
+ ], LemmyHttp.prototype, "getRandomCommunity", null);
1177
+ __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)())
1183
+ ], LemmyHttp.prototype, "createPost", null);
1184
+ __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)())
1191
+ ], LemmyHttp.prototype, "getPost", null);
1192
+ __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)())
1198
+ ], LemmyHttp.prototype, "editPost", null);
1199
+ __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)())
1205
+ ], LemmyHttp.prototype, "deletePost", null);
1206
+ __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)())
1212
+ ], LemmyHttp.prototype, "removePost", null);
1213
+ __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)())
1219
+ ], LemmyHttp.prototype, "markPostAsRead", null);
1220
+ __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)())
1226
+ ], LemmyHttp.prototype, "markManyPostAsRead", null);
1227
+ __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)())
1233
+ ], LemmyHttp.prototype, "hidePost", null);
1234
+ __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)())
1240
+ ], LemmyHttp.prototype, "lockPost", null);
1241
+ __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)())
1247
+ ], LemmyHttp.prototype, "featurePost", null);
1248
+ __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)())
1255
+ ], LemmyHttp.prototype, "getPosts", null);
1256
+ __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)())
1262
+ ], LemmyHttp.prototype, "likePost", null);
1263
+ __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)())
1269
+ ], LemmyHttp.prototype, "listPostLikes", null);
1270
+ __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)())
1276
+ ], LemmyHttp.prototype, "savePost", null);
1277
+ __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)())
1283
+ ], LemmyHttp.prototype, "createPostReport", null);
1284
+ __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)())
1290
+ ], LemmyHttp.prototype, "resolvePostReport", null);
1291
+ __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)())
1297
+ ], LemmyHttp.prototype, "getSiteMetadata", null);
1298
+ __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)())
1304
+ ], LemmyHttp.prototype, "createComment", null);
1305
+ __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)())
1311
+ ], LemmyHttp.prototype, "editComment", null);
1312
+ __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)())
1318
+ ], LemmyHttp.prototype, "deleteComment", null);
1319
+ __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)())
1325
+ ], LemmyHttp.prototype, "removeComment", null);
1326
+ __decorate([
1327
+ (0, tsoa_1.Security)("bearerAuth"),
1328
+ (0, tsoa_1.Post)("/comment/mark_as_read"),
1329
+ (0, tsoa_1.Tags)("Comment"),
1330
+ __param(0, (0, tsoa_1.Body)()),
1331
+ __param(1, (0, tsoa_1.Inject)())
1332
+ ], LemmyHttp.prototype, "markCommentReplyAsRead", null);
1333
+ __decorate([
1334
+ (0, tsoa_1.Security)("bearerAuth"),
1335
+ (0, tsoa_1.Post)("/comment/like"),
1336
+ (0, tsoa_1.Tags)("Comment"),
1337
+ __param(0, (0, tsoa_1.Body)()),
1338
+ __param(1, (0, tsoa_1.Inject)())
1339
+ ], LemmyHttp.prototype, "likeComment", null);
1340
+ __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)())
1346
+ ], LemmyHttp.prototype, "listCommentLikes", null);
1347
+ __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)())
1353
+ ], LemmyHttp.prototype, "saveComment", null);
1354
+ __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)())
1360
+ ], LemmyHttp.prototype, "distinguishComment", null);
1361
+ __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)())
1368
+ ], LemmyHttp.prototype, "getComments", null);
1369
+ __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)())
1376
+ ], LemmyHttp.prototype, "getCommentsSlim", null);
1377
+ __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)())
1384
+ ], LemmyHttp.prototype, "getComment", null);
1385
+ __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)())
1391
+ ], LemmyHttp.prototype, "createCommentReport", null);
1392
+ __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)())
1398
+ ], LemmyHttp.prototype, "resolveCommentReport", null);
1399
+ __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)())
1405
+ ], LemmyHttp.prototype, "createPrivateMessage", null);
1406
+ __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)())
1412
+ ], LemmyHttp.prototype, "editPrivateMessage", null);
1413
+ __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)())
1419
+ ], LemmyHttp.prototype, "deletePrivateMessage", null);
1420
+ __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)())
1426
+ ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
1427
+ __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)())
1433
+ ], LemmyHttp.prototype, "createPrivateMessageReport", null);
1434
+ __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)())
1440
+ ], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
1441
+ __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)())
1446
+ ], LemmyHttp.prototype, "register", null);
1447
+ __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)())
1452
+ ], LemmyHttp.prototype, "login", null);
1453
+ __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)())
1458
+ ], LemmyHttp.prototype, "logout", null);
1459
+ __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)())
1466
+ ], LemmyHttp.prototype, "getPersonDetails", null);
1467
+ __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)())
1474
+ ], LemmyHttp.prototype, "listPersonContent", null);
1475
+ __decorate([
1476
+ (0, tsoa_1.Security)("bearerAuth"),
1477
+ (0, tsoa_1.Post)("/account/mention/comment/mark_as_read"),
1478
+ (0, tsoa_1.Tags)("Account", "Person"),
1479
+ __param(0, (0, tsoa_1.Body)()),
1480
+ __param(1, (0, tsoa_1.Inject)())
1481
+ ], LemmyHttp.prototype, "markCommentMentionAsRead", null);
1482
+ __decorate([
1483
+ (0, tsoa_1.Security)("bearerAuth"),
1484
+ (0, tsoa_1.Post)("/account/mention/post/mark_as_read"),
1485
+ (0, tsoa_1.Tags)("Account", "Post"),
1486
+ __param(0, (0, tsoa_1.Body)()),
1487
+ __param(1, (0, tsoa_1.Inject)())
1488
+ ], LemmyHttp.prototype, "markPostMentionAsRead", null);
1489
+ __decorate([
1490
+ (0, tsoa_1.Security)("bearerAuth"),
1491
+ (0, tsoa_1.Post)("/admin/ban"),
1492
+ (0, tsoa_1.Tags)("Admin"),
1493
+ __param(0, (0, tsoa_1.Body)()),
1494
+ __param(1, (0, tsoa_1.Inject)())
1495
+ ], LemmyHttp.prototype, "banPerson", null);
1496
+ __decorate([
1497
+ (0, tsoa_1.Security)("bearerAuth"),
1498
+ (0, tsoa_1.Get)("/admin/banned"),
1499
+ (0, tsoa_1.Tags)("Admin", "Miscellaneous"),
1500
+ __param(0, (0, tsoa_1.Inject)())
1501
+ ], LemmyHttp.prototype, "getBannedPersons", null);
1502
+ __decorate([
1503
+ (0, tsoa_1.Security)("bearerAuth"),
1504
+ (0, tsoa_1.Post)("/account/block/person"),
1505
+ (0, tsoa_1.Tags)("Account"),
1506
+ __param(0, (0, tsoa_1.Body)()),
1507
+ __param(1, (0, tsoa_1.Inject)())
1508
+ ], LemmyHttp.prototype, "blockPerson", null);
1509
+ __decorate([
1510
+ (0, tsoa_1.Get)("/account/auth/get_captcha"),
1511
+ (0, tsoa_1.Tags)("Account"),
1512
+ __param(0, (0, tsoa_1.Inject)())
1513
+ ], LemmyHttp.prototype, "getCaptcha", null);
1514
+ __decorate([
1515
+ (0, tsoa_1.Security)("bearerAuth"),
1516
+ (0, tsoa_1.Post)("/account/delete"),
1517
+ (0, tsoa_1.Tags)("Account"),
1518
+ __param(0, (0, tsoa_1.Body)()),
1519
+ __param(1, (0, tsoa_1.Inject)())
1520
+ ], LemmyHttp.prototype, "deleteAccount", null);
1521
+ __decorate([
1522
+ (0, tsoa_1.Security)("bearerAuth"),
1523
+ (0, tsoa_1.Post)("/account/auth/password_reset"),
1524
+ (0, tsoa_1.Tags)("Account"),
1525
+ __param(0, (0, tsoa_1.Body)()),
1526
+ __param(1, (0, tsoa_1.Inject)())
1527
+ ], LemmyHttp.prototype, "passwordReset", null);
1528
+ __decorate([
1529
+ (0, tsoa_1.Security)("bearerAuth"),
1530
+ (0, tsoa_1.Post)("/account/auth/password_change"),
1531
+ (0, tsoa_1.Tags)("Account"),
1532
+ __param(0, (0, tsoa_1.Body)()),
1533
+ __param(1, (0, tsoa_1.Inject)())
1534
+ ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1535
+ __decorate([
1536
+ (0, tsoa_1.Security)("bearerAuth"),
1537
+ (0, tsoa_1.Post)("/account/mark_as_read/all"),
1538
+ (0, tsoa_1.Tags)("Account"),
1539
+ __param(0, (0, tsoa_1.Inject)())
1540
+ ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1541
+ __decorate([
1542
+ (0, tsoa_1.Security)("bearerAuth"),
1543
+ (0, tsoa_1.Put)("/account/settings/save"),
1544
+ (0, tsoa_1.Tags)("Account"),
1545
+ __param(0, (0, tsoa_1.Body)()),
1546
+ __param(1, (0, tsoa_1.Inject)())
1547
+ ], LemmyHttp.prototype, "saveUserSettings", null);
1548
+ __decorate([
1549
+ (0, tsoa_1.Security)("bearerAuth"),
1550
+ (0, tsoa_1.Put)("/account/auth/change_password"),
1551
+ (0, tsoa_1.Tags)("Account"),
1552
+ __param(0, (0, tsoa_1.Body)()),
1553
+ __param(1, (0, tsoa_1.Inject)())
1554
+ ], LemmyHttp.prototype, "changePassword", null);
1555
+ __decorate([
1556
+ (0, tsoa_1.Security)("bearerAuth"),
1557
+ (0, tsoa_1.Get)("/account/report_count"),
1558
+ (0, tsoa_1.Tags)("Account"),
1559
+ __param(0, (0, tsoa_1.Queries)()),
1560
+ __param(1, (0, tsoa_1.Inject)())
1561
+ ], LemmyHttp.prototype, "getReportCount", null);
1562
+ __decorate([
1563
+ (0, tsoa_1.Security)("bearerAuth"),
1564
+ (0, tsoa_1.Get)("/account/unread_count"),
1565
+ (0, tsoa_1.Tags)("Account"),
1566
+ __param(0, (0, tsoa_1.Inject)())
1567
+ ], LemmyHttp.prototype, "getUnreadCount", null);
1568
+ __decorate([
1569
+ (0, tsoa_1.Security)("bearerAuth"),
1570
+ (0, tsoa_1.Get)("/account/inbox"),
1571
+ (0, tsoa_1.Tags)("Account"),
1572
+ __param(0, (0, tsoa_1.Queries)()),
1573
+ __param(1, (0, tsoa_1.Inject)())
1574
+ ], LemmyHttp.prototype, "listInbox", null);
1575
+ __decorate([
1576
+ (0, tsoa_1.Post)("/account/auth/verify_email"),
1577
+ (0, tsoa_1.Tags)("Account"),
1578
+ __param(0, (0, tsoa_1.Body)()),
1579
+ __param(1, (0, tsoa_1.Inject)())
1580
+ ], LemmyHttp.prototype, "verifyEmail", null);
1581
+ __decorate([
1582
+ (0, tsoa_1.Post)("/account/auth/resend_verification_email"),
1583
+ (0, tsoa_1.Tags)("Account"),
1584
+ __param(0, (0, tsoa_1.Body)()),
1585
+ __param(1, (0, tsoa_1.Inject)())
1586
+ ], LemmyHttp.prototype, "resendVerificationEmail", null);
1587
+ __decorate([
1588
+ (0, tsoa_1.Security)("bearerAuth"),
1589
+ (0, tsoa_1.Get)("/account/auth/saved"),
1590
+ (0, tsoa_1.Tags)("Account"),
1591
+ __param(0, (0, tsoa_1.Queries)()),
1592
+ __param(1, (0, tsoa_1.Inject)())
1593
+ ], LemmyHttp.prototype, "listPersonSaved", null);
1594
+ __decorate([
1595
+ (0, tsoa_1.Security)("bearerAuth"),
1596
+ (0, tsoa_1.Post)("/admin/add"),
1597
+ (0, tsoa_1.Tags)("Admin"),
1598
+ __param(0, (0, tsoa_1.Body)()),
1599
+ __param(1, (0, tsoa_1.Inject)())
1600
+ ], LemmyHttp.prototype, "addAdmin", null);
1601
+ __decorate([
1602
+ (0, tsoa_1.Security)("bearerAuth"),
1603
+ (0, tsoa_1.Get)("/admin/registration_application/count"),
1604
+ (0, tsoa_1.Tags)("Admin"),
1605
+ __param(0, (0, tsoa_1.Inject)())
1606
+ ], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
1607
+ __decorate([
1608
+ (0, tsoa_1.Security)("bearerAuth"),
1609
+ (0, tsoa_1.Get)("/admin/registration_application/list"),
1610
+ (0, tsoa_1.Tags)("Admin"),
1611
+ __param(0, (0, tsoa_1.Queries)()),
1612
+ __param(1, (0, tsoa_1.Inject)())
1613
+ ], LemmyHttp.prototype, "listRegistrationApplications", null);
1614
+ __decorate([
1615
+ (0, tsoa_1.Security)("bearerAuth"),
1616
+ (0, tsoa_1.Put)("/admin/registration_application/approve"),
1617
+ (0, tsoa_1.Tags)("Admin"),
1618
+ __param(0, (0, tsoa_1.Body)()),
1619
+ __param(1, (0, tsoa_1.Inject)())
1620
+ ], LemmyHttp.prototype, "approveRegistrationApplication", null);
1621
+ __decorate([
1622
+ (0, tsoa_1.Security)("bearerAuth"),
1623
+ (0, tsoa_1.Get)("/admin/registration_application"),
1624
+ (0, tsoa_1.Tags)("Admin"),
1625
+ __param(0, (0, tsoa_1.Queries)()),
1626
+ __param(1, (0, tsoa_1.Inject)())
1627
+ ], LemmyHttp.prototype, "getRegistrationApplication", null);
1628
+ __decorate([
1629
+ (0, tsoa_1.Security)("bearerAuth"),
1630
+ (0, tsoa_1.Post)("/admin/purge/person"),
1631
+ (0, tsoa_1.Tags)("Admin"),
1632
+ __param(0, (0, tsoa_1.Body)()),
1633
+ __param(1, (0, tsoa_1.Inject)())
1634
+ ], LemmyHttp.prototype, "purgePerson", null);
1635
+ __decorate([
1636
+ (0, tsoa_1.Security)("bearerAuth"),
1637
+ (0, tsoa_1.Post)("/admin/purge/community"),
1638
+ (0, tsoa_1.Tags)("Admin"),
1639
+ __param(0, (0, tsoa_1.Body)()),
1640
+ __param(1, (0, tsoa_1.Inject)())
1641
+ ], LemmyHttp.prototype, "purgeCommunity", null);
1642
+ __decorate([
1643
+ (0, tsoa_1.Security)("bearerAuth"),
1644
+ (0, tsoa_1.Post)("/admin/purge/post"),
1645
+ (0, tsoa_1.Tags)("Admin"),
1646
+ __param(0, (0, tsoa_1.Body)()),
1647
+ __param(1, (0, tsoa_1.Inject)())
1648
+ ], LemmyHttp.prototype, "purgePost", null);
1649
+ __decorate([
1650
+ (0, tsoa_1.Security)("bearerAuth"),
1651
+ (0, tsoa_1.Post)("/admin/purge/comment"),
1652
+ (0, tsoa_1.Tags)("Admin"),
1653
+ __param(0, (0, tsoa_1.Body)()),
1654
+ __param(1, (0, tsoa_1.Inject)())
1655
+ ], LemmyHttp.prototype, "purgeComment", null);
1656
+ __decorate([
1657
+ (0, tsoa_1.Security)("bearerAuth"),
1658
+ (0, tsoa_1.Post)("/custom_emoji"),
1659
+ (0, tsoa_1.Tags)("CustomEmoji"),
1660
+ __param(0, (0, tsoa_1.Body)()),
1661
+ __param(1, (0, tsoa_1.Inject)())
1662
+ ], LemmyHttp.prototype, "createCustomEmoji", null);
1663
+ __decorate([
1664
+ (0, tsoa_1.Security)("bearerAuth"),
1665
+ (0, tsoa_1.Put)("/custom_emoji"),
1666
+ (0, tsoa_1.Tags)("CustomEmoji"),
1667
+ __param(0, (0, tsoa_1.Body)()),
1668
+ __param(1, (0, tsoa_1.Inject)())
1669
+ ], LemmyHttp.prototype, "editCustomEmoji", null);
1670
+ __decorate([
1671
+ (0, tsoa_1.Security)("bearerAuth"),
1672
+ (0, tsoa_1.Post)("/custom_emoji/delete"),
1673
+ (0, tsoa_1.Tags)("CustomEmoji"),
1674
+ __param(0, (0, tsoa_1.Body)()),
1675
+ __param(1, (0, tsoa_1.Inject)())
1676
+ ], LemmyHttp.prototype, "deleteCustomEmoji", null);
1677
+ __decorate([
1678
+ (0, tsoa_1.Security)("bearerAuth"),
1679
+ (0, tsoa_1.Security)({}),
1680
+ (0, tsoa_1.Get)("/custom_emoji/list"),
1681
+ (0, tsoa_1.Tags)("CustomEmoji"),
1682
+ __param(0, (0, tsoa_1.Queries)()),
1683
+ __param(1, (0, tsoa_1.Inject)())
1684
+ ], LemmyHttp.prototype, "listCustomEmojis", null);
1685
+ __decorate([
1686
+ (0, tsoa_1.Security)("bearerAuth"),
1687
+ (0, tsoa_1.Post)("/admin/tagline"),
1688
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1689
+ __param(0, (0, tsoa_1.Body)()),
1690
+ __param(1, (0, tsoa_1.Inject)())
1691
+ ], LemmyHttp.prototype, "createTagline", null);
1692
+ __decorate([
1693
+ (0, tsoa_1.Security)("bearerAuth"),
1694
+ (0, tsoa_1.Put)("/admin/tagline"),
1695
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1696
+ __param(0, (0, tsoa_1.Body)()),
1697
+ __param(1, (0, tsoa_1.Inject)())
1698
+ ], LemmyHttp.prototype, "editTagline", null);
1699
+ __decorate([
1700
+ (0, tsoa_1.Security)("bearerAuth"),
1701
+ (0, tsoa_1.Post)("/admin/tagline/delete"),
1702
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1703
+ __param(0, (0, tsoa_1.Body)()),
1704
+ __param(1, (0, tsoa_1.Inject)())
1705
+ ], LemmyHttp.prototype, "deleteTagline", null);
1706
+ __decorate([
1707
+ (0, tsoa_1.Security)("bearerAuth"),
1708
+ (0, tsoa_1.Security)({}),
1709
+ (0, tsoa_1.Get)("/admin/tagline/list"),
1710
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1711
+ __param(0, (0, tsoa_1.Queries)()),
1712
+ __param(1, (0, tsoa_1.Inject)())
1713
+ ], LemmyHttp.prototype, "listTaglines", null);
1714
+ __decorate([
1715
+ (0, tsoa_1.Security)("bearerAuth"),
1716
+ (0, tsoa_1.Post)("/oauth_provider"),
1717
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1718
+ __param(0, (0, tsoa_1.Body)()),
1719
+ __param(1, (0, tsoa_1.Inject)())
1720
+ ], LemmyHttp.prototype, "createOAuthProvider", null);
1721
+ __decorate([
1722
+ (0, tsoa_1.Security)("bearerAuth"),
1723
+ (0, tsoa_1.Put)("/oauth_provider"),
1724
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1725
+ __param(0, (0, tsoa_1.Body)()),
1726
+ __param(1, (0, tsoa_1.Inject)())
1727
+ ], LemmyHttp.prototype, "editOAuthProvider", null);
1728
+ __decorate([
1729
+ (0, tsoa_1.Security)("bearerAuth"),
1730
+ (0, tsoa_1.Post)("/oauth_provider/delete"),
1731
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1732
+ __param(0, (0, tsoa_1.Body)()),
1733
+ __param(1, (0, tsoa_1.Inject)())
1734
+ ], LemmyHttp.prototype, "deleteOAuthProvider", null);
1735
+ __decorate([
1736
+ (0, tsoa_1.Security)("bearerAuth"),
1737
+ (0, tsoa_1.Post)("/oauth/authenticate"),
1738
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1739
+ __param(0, (0, tsoa_1.Body)()),
1740
+ __param(1, (0, tsoa_1.Inject)())
1741
+ ], LemmyHttp.prototype, "authenticateWithOAuth", null);
1742
+ __decorate([
1743
+ (0, tsoa_1.Get)("/federated_instances"),
1744
+ (0, tsoa_1.Tags)("Miscellaneous"),
1745
+ __param(0, (0, tsoa_1.Inject)())
1746
+ ], LemmyHttp.prototype, "getFederatedInstances", null);
1747
+ __decorate([
1748
+ (0, tsoa_1.Security)("bearerAuth"),
1749
+ (0, tsoa_1.Get)("/report/list"),
1750
+ (0, tsoa_1.Tags)("Admin"),
1751
+ __param(0, (0, tsoa_1.Queries)()),
1752
+ __param(1, (0, tsoa_1.Inject)())
1753
+ ], LemmyHttp.prototype, "listReports", null);
1754
+ __decorate([
1755
+ (0, tsoa_1.Security)("bearerAuth"),
1756
+ (0, tsoa_1.Post)("/account/block/instance"),
1757
+ (0, tsoa_1.Tags)("Account"),
1758
+ __param(0, (0, tsoa_1.Body)()),
1759
+ __param(1, (0, tsoa_1.Inject)())
1760
+ ], LemmyHttp.prototype, "userBlockInstance", null);
1761
+ __decorate([
1762
+ (0, tsoa_1.Security)("bearerAuth"),
1763
+ (0, tsoa_1.Post)("/admin/instance/block"),
1764
+ (0, tsoa_1.Tags)("Admin"),
1765
+ __param(0, (0, tsoa_1.Body)()),
1766
+ __param(1, (0, tsoa_1.Inject)())
1767
+ ], LemmyHttp.prototype, "adminBlockInstance", null);
1768
+ __decorate([
1769
+ (0, tsoa_1.Security)("bearerAuth"),
1770
+ (0, tsoa_1.Post)("/admin/instance/allow"),
1771
+ (0, tsoa_1.Tags)("Admin"),
1772
+ __param(0, (0, tsoa_1.Body)()),
1773
+ __param(1, (0, tsoa_1.Inject)())
1774
+ ], LemmyHttp.prototype, "adminAllowInstance", null);
1775
+ __decorate([
1776
+ (0, tsoa_1.Security)("bearerAuth"),
1777
+ (0, tsoa_1.Post)("/account/avatar"),
1778
+ (0, tsoa_1.Tags)("Account", "Media"),
1779
+ __param(0, (0, tsoa_1.UploadedFile)()),
1780
+ __param(1, (0, tsoa_1.Inject)())
1781
+ ], LemmyHttp.prototype, "uploadUserAvatar", null);
1782
+ __decorate([
1783
+ (0, tsoa_1.Security)("bearerAuth"),
1784
+ (0, tsoa_1.Delete)("/account/avatar"),
1785
+ (0, tsoa_1.Tags)("Account", "Media"),
1786
+ __param(0, (0, tsoa_1.Inject)())
1787
+ ], LemmyHttp.prototype, "deleteUserAvatar", null);
1788
+ __decorate([
1789
+ (0, tsoa_1.Security)("bearerAuth"),
1790
+ (0, tsoa_1.Post)("/account/banner"),
1791
+ (0, tsoa_1.Tags)("Account", "Media"),
1792
+ __param(0, (0, tsoa_1.UploadedFile)()),
1793
+ __param(1, (0, tsoa_1.Inject)())
1794
+ ], LemmyHttp.prototype, "uploadUserBanner", null);
1795
+ __decorate([
1796
+ (0, tsoa_1.Security)("bearerAuth"),
1797
+ (0, tsoa_1.Delete)("/account/banner"),
1798
+ (0, tsoa_1.Tags)("Account", "Media"),
1799
+ __param(0, (0, tsoa_1.Inject)())
1800
+ ], LemmyHttp.prototype, "deleteUserBanner", null);
1801
+ __decorate([
1802
+ (0, tsoa_1.Security)("bearerAuth"),
1803
+ (0, tsoa_1.Post)("/community/icon"),
1804
+ (0, tsoa_1.Tags)("Community", "Media"),
1805
+ __param(0, (0, tsoa_1.UploadedFile)()),
1806
+ __param(1, (0, tsoa_1.Inject)())
1807
+ ], LemmyHttp.prototype, "uploadCommunityIcon", null);
1808
+ __decorate([
1809
+ (0, tsoa_1.Security)("bearerAuth"),
1810
+ (0, tsoa_1.Delete)("/community/icon"),
1811
+ (0, tsoa_1.Tags)("Community", "Media"),
1812
+ __param(0, (0, tsoa_1.Inject)())
1813
+ ], LemmyHttp.prototype, "deleteCommunityIcon", null);
1814
+ __decorate([
1815
+ (0, tsoa_1.Security)("bearerAuth"),
1816
+ (0, tsoa_1.Post)("/community/banner"),
1817
+ (0, tsoa_1.Tags)("Community", "Media"),
1818
+ __param(0, (0, tsoa_1.UploadedFile)()),
1819
+ __param(1, (0, tsoa_1.Inject)())
1820
+ ], LemmyHttp.prototype, "uploadCommunityBanner", null);
1821
+ __decorate([
1822
+ (0, tsoa_1.Security)("bearerAuth"),
1823
+ (0, tsoa_1.Delete)("/community/banner"),
1824
+ (0, tsoa_1.Tags)("Community", "Media"),
1825
+ __param(0, (0, tsoa_1.Inject)())
1826
+ ], LemmyHttp.prototype, "deleteCommunityBanner", null);
1827
+ __decorate([
1828
+ (0, tsoa_1.Security)("bearerAuth"),
1829
+ (0, tsoa_1.Post)("/site/icon"),
1830
+ (0, tsoa_1.Tags)("Site", "Media"),
1831
+ __param(0, (0, tsoa_1.UploadedFile)()),
1832
+ __param(1, (0, tsoa_1.Inject)())
1833
+ ], LemmyHttp.prototype, "uploadSiteIcon", null);
1834
+ __decorate([
1835
+ (0, tsoa_1.Security)("bearerAuth"),
1836
+ (0, tsoa_1.Delete)("/site/icon"),
1837
+ (0, tsoa_1.Tags)("Site", "Media"),
1838
+ __param(0, (0, tsoa_1.Inject)())
1839
+ ], LemmyHttp.prototype, "deleteSiteIcon", null);
1840
+ __decorate([
1841
+ (0, tsoa_1.Security)("bearerAuth"),
1842
+ (0, tsoa_1.Post)("/site/banner"),
1843
+ (0, tsoa_1.Tags)("Site", "Media"),
1844
+ __param(0, (0, tsoa_1.UploadedFile)()),
1845
+ __param(1, (0, tsoa_1.Inject)())
1846
+ ], LemmyHttp.prototype, "uploadSiteBanner", null);
1847
+ __decorate([
1848
+ (0, tsoa_1.Security)("bearerAuth"),
1849
+ (0, tsoa_1.Delete)("/site/banner"),
1850
+ (0, tsoa_1.Tags)("Site", "Media"),
1851
+ __param(0, (0, tsoa_1.Inject)())
1852
+ ], LemmyHttp.prototype, "deleteSiteBanner", null);
1853
+ __decorate([
1854
+ (0, tsoa_1.Security)("bearerAuth"),
1855
+ (0, tsoa_1.Post)("/image"),
1856
+ (0, tsoa_1.Tags)("Media"),
1857
+ __param(0, (0, tsoa_1.UploadedFile)()),
1858
+ __param(1, (0, tsoa_1.Inject)())
1859
+ ], LemmyHttp.prototype, "uploadImage", null);
1860
+ __decorate([
1861
+ (0, tsoa_1.Security)("bearerAuth"),
1862
+ (0, tsoa_1.Delete)("/image"),
1863
+ (0, tsoa_1.Tags)("Media"),
1864
+ __param(0, (0, tsoa_1.Queries)()),
1865
+ __param(1, (0, tsoa_1.Inject)())
1866
+ ], LemmyHttp.prototype, "deleteImage", null);
1867
+ __decorate([
1868
+ (0, tsoa_1.Get)("image/health"),
1869
+ (0, tsoa_1.Tags)("Media"),
1870
+ __param(0, (0, tsoa_1.Inject)())
1871
+ ], LemmyHttp.prototype, "imageHealth", null);
1872
+ exports.LemmyHttp = LemmyHttp = __decorate([
1873
+ (0, tsoa_1.Route)("api/v4")
1874
+ ], LemmyHttp);
1184
1875
  function encodeGetParams(p) {
1185
1876
  return Object.entries(p)
1186
1877
  .filter(kv => kv[1] !== undefined && kv[1] !== null)