lemmy-js-client 1.0.0-remove-page-limit.0 → 1.0.0-rename-timestamp-to-at.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +50 -20
- package/dist/http.js +243 -158
- package/dist/index.d.ts +12 -2
- package/dist/other_types.d.ts +14 -2
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +2 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +5 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityIdQuery.js +2 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +1 -1
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -4
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/GetComments.d.ts +0 -2
- package/dist/types/GetPosts.d.ts +0 -2
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +3 -7
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +2 -2
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +6 -6
- package/dist/types/LocalSiteRateLimit.d.ts +2 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +3 -2
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +1 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/Post.d.ts +4 -4
- package/dist/types/PostActions.d.ts +5 -9
- package/dist/types/PostActions.js +1 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +2 -1
- package/dist/types/Search.d.ts +4 -0
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +2 -2
- package/dist/types/Tagline.d.ts +2 -2
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +0 -1
- package/package.json +4 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
package/dist/http.js
CHANGED
@@ -19,7 +19,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
19
19
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
20
20
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
21
21
|
};
|
22
|
-
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
22
|
+
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
exports.LemmyHttp = void 0;
|
25
25
|
const runtime_1 = require("@tsoa/runtime");
|
@@ -57,25 +57,25 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
57
57
|
/**
|
58
58
|
* @summary Gets the site, and your user data.
|
59
59
|
*/
|
60
|
-
getSite(options) {
|
60
|
+
async getSite(options) {
|
61
61
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
62
62
|
}
|
63
63
|
/**
|
64
64
|
* @summary Create your site.
|
65
65
|
*/
|
66
|
-
createSite(form, options) {
|
66
|
+
async createSite(form, options) {
|
67
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
68
68
|
}
|
69
69
|
/**
|
70
70
|
* @summary Edit your site.
|
71
71
|
*/
|
72
|
-
editSite(form, options) {
|
72
|
+
async editSite(form, options) {
|
73
73
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
74
74
|
}
|
75
75
|
/**
|
76
76
|
* @summary Leave the Site admins.
|
77
77
|
*/
|
78
|
-
leaveAdmin(options) {
|
78
|
+
async leaveAdmin(options) {
|
79
79
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
80
80
|
}
|
81
81
|
/**
|
@@ -84,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
84
84
|
* Generate a TOTP / two-factor secret.
|
85
85
|
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
86
86
|
*/
|
87
|
-
generateTotpSecret(options) {
|
87
|
+
async generateTotpSecret(options) {
|
88
88
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
89
89
|
}
|
90
90
|
/**
|
91
91
|
* @summary Get data of current user.
|
92
92
|
*/
|
93
|
-
getMyUser(options) {
|
93
|
+
async getMyUser(options) {
|
94
94
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
95
95
|
}
|
96
96
|
/**
|
@@ -99,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
99
99
|
* Export a backup of your user settings, including your saved content,
|
100
100
|
* followed communities, and blocks.
|
101
101
|
*/
|
102
|
-
exportSettings(options) {
|
102
|
+
async exportSettings(options) {
|
103
103
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
104
104
|
}
|
105
105
|
/**
|
106
106
|
* @summary Import a backup of your user settings.
|
107
107
|
*/
|
108
|
-
importSettings(form, options) {
|
108
|
+
async importSettings(form, options) {
|
109
109
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
110
110
|
}
|
111
111
|
/**
|
112
112
|
* @summary List login tokens for your user
|
113
113
|
*/
|
114
|
-
listLogins(options) {
|
114
|
+
async listLogins(options) {
|
115
115
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
|
116
116
|
}
|
117
117
|
/**
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
119
119
|
*/
|
120
|
-
validateAuth(options) {
|
120
|
+
async validateAuth(options) {
|
121
121
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
122
122
|
}
|
123
123
|
/**
|
124
|
-
* @summary List all the media for your
|
124
|
+
* @summary List all the media for your account.
|
125
125
|
*/
|
126
|
-
listMedia(form = {}, options) {
|
127
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
126
|
+
async listMedia(form = {}, options) {
|
127
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* @summary Delete media for your account.
|
131
|
+
*/
|
132
|
+
async deleteMedia(form, options) {
|
133
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* @summary Delete any media. (Admin only)
|
137
|
+
*/
|
138
|
+
async deleteMediaAdmin(form, options) {
|
139
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
128
140
|
}
|
129
141
|
/**
|
130
142
|
* @summary List all the media known to your instance.
|
131
143
|
*/
|
132
|
-
|
133
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
144
|
+
async listMediaAdmin(form = {}, options) {
|
145
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
|
134
146
|
}
|
135
147
|
/**
|
136
148
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
@@ -139,583 +151,613 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
139
151
|
*
|
140
152
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
141
153
|
*/
|
142
|
-
updateTotp(form, options) {
|
154
|
+
async updateTotp(form, options) {
|
143
155
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
144
156
|
}
|
145
157
|
/**
|
146
158
|
* @summary Get the modlog.
|
147
159
|
*/
|
148
|
-
getModlog(form = {}, options) {
|
160
|
+
async getModlog(form = {}, options) {
|
149
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
150
162
|
}
|
151
163
|
/**
|
152
|
-
* @summary Search lemmy.
|
164
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
153
165
|
*/
|
154
|
-
search(form, options) {
|
166
|
+
async search(form, options) {
|
155
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
156
168
|
}
|
157
169
|
/**
|
158
170
|
* @summary Fetch a non-local / federated object.
|
159
171
|
*/
|
160
|
-
resolveObject(form, options) {
|
172
|
+
async resolveObject(form, options) {
|
161
173
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
162
174
|
}
|
163
175
|
/**
|
164
176
|
* @summary Create a new community.
|
165
177
|
*/
|
166
|
-
createCommunity(form, options) {
|
178
|
+
async createCommunity(form, options) {
|
167
179
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
168
180
|
}
|
169
181
|
/**
|
170
182
|
* @summary Get / fetch a community.
|
171
183
|
*/
|
172
|
-
getCommunity(form = {}, options) {
|
184
|
+
async getCommunity(form = {}, options) {
|
173
185
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
174
186
|
}
|
175
187
|
/**
|
176
188
|
* @summary Edit a community.
|
177
189
|
*/
|
178
|
-
editCommunity(form, options) {
|
190
|
+
async editCommunity(form, options) {
|
179
191
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
180
192
|
}
|
181
193
|
/**
|
182
194
|
* @summary List communities, with various filters.
|
183
195
|
*/
|
184
|
-
listCommunities(form = {}, options) {
|
196
|
+
async listCommunities(form = {}, options) {
|
185
197
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
186
198
|
}
|
187
199
|
/**
|
188
200
|
* @summary Follow / subscribe to a community.
|
189
201
|
*/
|
190
|
-
followCommunity(form, options) {
|
202
|
+
async followCommunity(form, options) {
|
191
203
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
192
204
|
}
|
193
205
|
/**
|
194
206
|
* @summary Get a community's pending follows count.
|
195
207
|
*/
|
196
|
-
getCommunityPendingFollowsCount(form, options) {
|
208
|
+
async getCommunityPendingFollowsCount(form, options) {
|
197
209
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
198
210
|
}
|
199
211
|
/**
|
200
212
|
* @summary Get a community's pending followers.
|
201
213
|
*/
|
202
|
-
listCommunityPendingFollows(form, options) {
|
214
|
+
async listCommunityPendingFollows(form, options) {
|
203
215
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
204
216
|
}
|
205
217
|
/**
|
206
218
|
* @summary Approve a community pending follow request.
|
207
219
|
*/
|
208
|
-
approveCommunityPendingFollow(form, options) {
|
220
|
+
async approveCommunityPendingFollow(form, options) {
|
209
221
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
210
222
|
}
|
211
223
|
/**
|
212
224
|
* @summary Block a community.
|
213
225
|
*/
|
214
|
-
blockCommunity(form, options) {
|
226
|
+
async blockCommunity(form, options) {
|
215
227
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
216
228
|
}
|
217
229
|
/**
|
218
230
|
* @summary Delete a community.
|
219
231
|
*/
|
220
|
-
deleteCommunity(form, options) {
|
232
|
+
async deleteCommunity(form, options) {
|
221
233
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
222
234
|
}
|
223
235
|
/**
|
224
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
225
237
|
*/
|
226
|
-
hideCommunity(form, options) {
|
238
|
+
async hideCommunity(form, options) {
|
227
239
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
228
240
|
}
|
229
241
|
/**
|
230
242
|
* @summary A moderator remove for a community.
|
231
243
|
*/
|
232
|
-
removeCommunity(form, options) {
|
244
|
+
async removeCommunity(form, options) {
|
233
245
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
234
246
|
}
|
235
247
|
/**
|
236
248
|
* @summary Transfer your community to an existing moderator.
|
237
249
|
*/
|
238
|
-
transferCommunity(form, options) {
|
250
|
+
async transferCommunity(form, options) {
|
239
251
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
240
252
|
}
|
241
253
|
/**
|
242
254
|
* @summary Ban a user from a community.
|
243
255
|
*/
|
244
|
-
banFromCommunity(form, options) {
|
256
|
+
async banFromCommunity(form, options) {
|
245
257
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
246
258
|
}
|
247
259
|
/**
|
248
260
|
* @summary Add a moderator to your community.
|
249
261
|
*/
|
250
|
-
addModToCommunity(form, options) {
|
262
|
+
async addModToCommunity(form, options) {
|
251
263
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
252
264
|
}
|
253
265
|
/**
|
254
266
|
* @summary Get a random community.
|
255
267
|
*/
|
256
|
-
getRandomCommunity(form, options) {
|
268
|
+
async getRandomCommunity(form, options) {
|
257
269
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
258
270
|
}
|
271
|
+
/**
|
272
|
+
* @summary Create a report for a community.
|
273
|
+
*/
|
274
|
+
async createCommunityReport(form, options) {
|
275
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* @summary Resolve a report for a private message.
|
279
|
+
*/
|
280
|
+
async resolveCommunityReport(form, options) {
|
281
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
|
282
|
+
}
|
259
283
|
/**
|
260
284
|
* @summary Create a post.
|
261
285
|
*/
|
262
|
-
createPost(form, options) {
|
286
|
+
async createPost(form, options) {
|
263
287
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
264
288
|
}
|
265
289
|
/**
|
266
290
|
* @summary Get / fetch a post.
|
267
291
|
*/
|
268
|
-
getPost(form = {}, options) {
|
292
|
+
async getPost(form = {}, options) {
|
269
293
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
270
294
|
}
|
271
295
|
/**
|
272
296
|
* @summary Edit a post.
|
273
297
|
*/
|
274
|
-
editPost(form, options) {
|
298
|
+
async editPost(form, options) {
|
275
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
276
300
|
}
|
277
301
|
/**
|
278
302
|
* @summary Delete a post.
|
279
303
|
*/
|
280
|
-
deletePost(form, options) {
|
304
|
+
async deletePost(form, options) {
|
281
305
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
282
306
|
}
|
283
307
|
/**
|
284
308
|
* @summary A moderator remove for a post.
|
285
309
|
*/
|
286
|
-
removePost(form, options) {
|
310
|
+
async removePost(form, options) {
|
287
311
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
288
312
|
}
|
289
313
|
/**
|
290
314
|
* @summary Mark a post as read.
|
291
315
|
*/
|
292
|
-
markPostAsRead(form, options) {
|
316
|
+
async markPostAsRead(form, options) {
|
293
317
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
294
318
|
}
|
295
319
|
/**
|
296
320
|
* @summary Mark multiple posts as read.
|
297
321
|
*/
|
298
|
-
markManyPostAsRead(form, options) {
|
322
|
+
async markManyPostAsRead(form, options) {
|
299
323
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
300
324
|
}
|
301
325
|
/**
|
302
326
|
* @summary Hide a post from list views.
|
303
327
|
*/
|
304
|
-
hidePost(form, options) {
|
328
|
+
async hidePost(form, options) {
|
305
329
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
306
330
|
}
|
307
331
|
/**
|
308
332
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
309
333
|
*/
|
310
|
-
lockPost(form, options) {
|
334
|
+
async lockPost(form, options) {
|
311
335
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
312
336
|
}
|
313
337
|
/**
|
314
338
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
315
339
|
*/
|
316
|
-
featurePost(form, options) {
|
340
|
+
async featurePost(form, options) {
|
317
341
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
318
342
|
}
|
319
343
|
/**
|
320
344
|
* @summary Get / fetch posts, with various filters.
|
321
345
|
*/
|
322
|
-
getPosts(form = {}, options) {
|
346
|
+
async getPosts(form = {}, options) {
|
323
347
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
324
348
|
}
|
325
349
|
/**
|
326
350
|
* @summary Like / vote on a post.
|
327
351
|
*/
|
328
|
-
likePost(form, options) {
|
352
|
+
async likePost(form, options) {
|
329
353
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
330
354
|
}
|
331
355
|
/**
|
332
356
|
* @summary List a post's likes. Admin-only.
|
333
357
|
*/
|
334
|
-
listPostLikes(form, options) {
|
358
|
+
async listPostLikes(form, options) {
|
335
359
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
336
360
|
}
|
337
361
|
/**
|
338
362
|
* @summary Save a post.
|
339
363
|
*/
|
340
|
-
savePost(form, options) {
|
364
|
+
async savePost(form, options) {
|
341
365
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
342
366
|
}
|
343
367
|
/**
|
344
368
|
* @summary Report a post.
|
345
369
|
*/
|
346
|
-
createPostReport(form, options) {
|
370
|
+
async createPostReport(form, options) {
|
347
371
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
348
372
|
}
|
349
373
|
/**
|
350
374
|
* @summary Resolve a post report. Only a mod can do this.
|
351
375
|
*/
|
352
|
-
resolvePostReport(form, options) {
|
376
|
+
async resolvePostReport(form, options) {
|
353
377
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
354
378
|
}
|
355
379
|
/**
|
356
380
|
* @summary Fetch metadata for any given site.
|
357
381
|
*/
|
358
|
-
getSiteMetadata(form, options) {
|
382
|
+
async getSiteMetadata(form, options) {
|
359
383
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
360
384
|
}
|
361
385
|
/**
|
362
386
|
* @summary Create a comment.
|
363
387
|
*/
|
364
|
-
createComment(form, options) {
|
388
|
+
async createComment(form, options) {
|
365
389
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
366
390
|
}
|
367
391
|
/**
|
368
392
|
* @summary Edit a comment.
|
369
393
|
*/
|
370
|
-
editComment(form, options) {
|
394
|
+
async editComment(form, options) {
|
371
395
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
372
396
|
}
|
373
397
|
/**
|
374
398
|
* @summary Delete a comment.
|
375
399
|
*/
|
376
|
-
deleteComment(form, options) {
|
400
|
+
async deleteComment(form, options) {
|
377
401
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
378
402
|
}
|
379
403
|
/**
|
380
404
|
* @summary A moderator remove for a comment.
|
381
405
|
*/
|
382
|
-
removeComment(form, options) {
|
406
|
+
async removeComment(form, options) {
|
383
407
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
384
408
|
}
|
385
409
|
/**
|
386
410
|
* @summary Mark a comment as read.
|
387
411
|
*/
|
388
|
-
markCommentReplyAsRead(form, options) {
|
412
|
+
async markCommentReplyAsRead(form, options) {
|
389
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
390
414
|
}
|
391
415
|
/**
|
392
416
|
* @summary Like / vote on a comment.
|
393
417
|
*/
|
394
|
-
likeComment(form, options) {
|
418
|
+
async likeComment(form, options) {
|
395
419
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
396
420
|
}
|
397
421
|
/**
|
398
422
|
* @summary List a comment's likes. Admin-only.
|
399
423
|
*/
|
400
|
-
listCommentLikes(form, options) {
|
424
|
+
async listCommentLikes(form, options) {
|
401
425
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
402
426
|
}
|
403
427
|
/**
|
404
428
|
* @summary Save a comment.
|
405
429
|
*/
|
406
|
-
saveComment(form, options) {
|
430
|
+
async saveComment(form, options) {
|
407
431
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
408
432
|
}
|
409
433
|
/**
|
410
434
|
* @summary Distinguishes a comment (speak as moderator)
|
411
435
|
*/
|
412
|
-
distinguishComment(form, options) {
|
436
|
+
async distinguishComment(form, options) {
|
413
437
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
414
438
|
}
|
415
439
|
/**
|
416
440
|
* @summary Get / fetch comments.
|
417
441
|
*/
|
418
|
-
getComments(form = {}, options) {
|
442
|
+
async getComments(form = {}, options) {
|
419
443
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
420
444
|
}
|
421
445
|
/**
|
422
446
|
* @summary Get / fetch comments, but without the post or community.
|
423
447
|
*/
|
424
|
-
getCommentsSlim(form = {}, options) {
|
448
|
+
async getCommentsSlim(form = {}, options) {
|
425
449
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
426
450
|
}
|
427
451
|
/**
|
428
452
|
* @summary Get / fetch comment.
|
429
453
|
*/
|
430
|
-
getComment(form, options) {
|
454
|
+
async getComment(form, options) {
|
431
455
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
432
456
|
}
|
433
457
|
/**
|
434
458
|
* @summary Report a comment.
|
435
459
|
*/
|
436
|
-
createCommentReport(form, options) {
|
460
|
+
async createCommentReport(form, options) {
|
437
461
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
438
462
|
}
|
439
463
|
/**
|
440
464
|
* @summary Resolve a comment report. Only a mod can do this.
|
441
465
|
*/
|
442
|
-
resolveCommentReport(form, options) {
|
466
|
+
async resolveCommentReport(form, options) {
|
443
467
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
444
468
|
}
|
445
469
|
/**
|
446
470
|
* @summary Create a private message.
|
447
471
|
*/
|
448
|
-
createPrivateMessage(form, options) {
|
472
|
+
async createPrivateMessage(form, options) {
|
449
473
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
450
474
|
}
|
451
475
|
/**
|
452
476
|
* @summary Edit a private message.
|
453
477
|
*/
|
454
|
-
editPrivateMessage(form, options) {
|
478
|
+
async editPrivateMessage(form, options) {
|
455
479
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
456
480
|
}
|
457
481
|
/**
|
458
482
|
* @summary Delete a private message.
|
459
483
|
*/
|
460
|
-
deletePrivateMessage(form, options) {
|
484
|
+
async deletePrivateMessage(form, options) {
|
461
485
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
462
486
|
}
|
463
487
|
/**
|
464
488
|
* @summary Mark a private message as read.
|
465
489
|
*/
|
466
|
-
markPrivateMessageAsRead(form, options) {
|
490
|
+
async markPrivateMessageAsRead(form, options) {
|
467
491
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
468
492
|
}
|
469
493
|
/**
|
470
494
|
* @summary Create a report for a private message.
|
471
495
|
*/
|
472
|
-
createPrivateMessageReport(form, options) {
|
496
|
+
async createPrivateMessageReport(form, options) {
|
473
497
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
474
498
|
}
|
475
499
|
/**
|
476
500
|
* @summary Resolve a report for a private message.
|
477
501
|
*/
|
478
|
-
resolvePrivateMessageReport(form, options) {
|
502
|
+
async resolvePrivateMessageReport(form, options) {
|
479
503
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
480
504
|
}
|
481
505
|
/**
|
482
506
|
* @summary Register a new user.
|
483
507
|
*/
|
484
|
-
register(form, options) {
|
508
|
+
async register(form, options) {
|
485
509
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
486
510
|
}
|
487
511
|
/**
|
488
512
|
* @summary Log into lemmy.
|
489
513
|
*/
|
490
|
-
login(form, options) {
|
514
|
+
async login(form, options) {
|
491
515
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
492
516
|
}
|
493
517
|
/**
|
494
518
|
* @summary Invalidate the currently used auth token.
|
495
519
|
*/
|
496
|
-
logout(options) {
|
520
|
+
async logout(options) {
|
497
521
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
498
522
|
}
|
499
523
|
/**
|
500
524
|
* @summary Get the details for a person.
|
501
525
|
*/
|
502
|
-
getPersonDetails(form = {}, options) {
|
526
|
+
async getPersonDetails(form = {}, options) {
|
503
527
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
504
528
|
}
|
505
529
|
/**
|
506
530
|
* @summary List the content for a person.
|
507
531
|
*/
|
508
|
-
listPersonContent(form = {}, options) {
|
532
|
+
async listPersonContent(form = {}, options) {
|
509
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
510
534
|
}
|
511
535
|
/**
|
512
536
|
* @summary Mark a person mention as read.
|
513
537
|
*/
|
514
|
-
markCommentMentionAsRead(form, options) {
|
538
|
+
async markCommentMentionAsRead(form, options) {
|
515
539
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
516
540
|
}
|
517
541
|
/**
|
518
542
|
* @summary Mark a person post body mention as read.
|
519
543
|
*/
|
520
|
-
markPostMentionAsRead(form, options) {
|
544
|
+
async markPostMentionAsRead(form, options) {
|
521
545
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
522
546
|
}
|
523
547
|
/**
|
524
548
|
* @summary Ban a person from your site.
|
525
549
|
*/
|
526
|
-
banPerson(form, options) {
|
550
|
+
async banPerson(form, options) {
|
527
551
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
528
552
|
}
|
529
553
|
/**
|
530
|
-
* @summary Get a list of
|
554
|
+
* @summary Get a list of users.
|
531
555
|
*/
|
532
|
-
|
533
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/
|
556
|
+
async listUsers(form = {}, options) {
|
557
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
|
534
558
|
}
|
535
559
|
/**
|
536
560
|
* @summary Block a person.
|
537
561
|
*/
|
538
|
-
blockPerson(form, options) {
|
562
|
+
async blockPerson(form, options) {
|
539
563
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
540
564
|
}
|
541
565
|
/**
|
542
566
|
* @summary Fetch a Captcha.
|
543
567
|
*/
|
544
|
-
getCaptcha(options) {
|
568
|
+
async getCaptcha(options) {
|
545
569
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
546
570
|
}
|
547
571
|
/**
|
548
572
|
* @summary Delete your account.
|
549
573
|
*/
|
550
|
-
deleteAccount(form, options) {
|
574
|
+
async deleteAccount(form, options) {
|
551
575
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
552
576
|
}
|
553
577
|
/**
|
554
578
|
* @summary Reset your password.
|
555
579
|
*/
|
556
|
-
passwordReset(form, options) {
|
580
|
+
async passwordReset(form, options) {
|
557
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
558
582
|
}
|
559
583
|
/**
|
560
584
|
* @summary Change your password from an email / token based reset.
|
561
585
|
*/
|
562
|
-
passwordChangeAfterReset(form, options) {
|
586
|
+
async passwordChangeAfterReset(form, options) {
|
563
587
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
564
588
|
}
|
565
589
|
/**
|
566
590
|
* @summary Mark all replies as read.
|
567
591
|
*/
|
568
|
-
markAllNotificationsAsRead(options) {
|
592
|
+
async markAllNotificationsAsRead(options) {
|
569
593
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
570
594
|
}
|
571
595
|
/**
|
572
596
|
* @summary Save your user settings.
|
573
597
|
*/
|
574
|
-
saveUserSettings(form, options) {
|
598
|
+
async saveUserSettings(form, options) {
|
575
599
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
576
600
|
}
|
577
601
|
/**
|
578
602
|
* @summary Change your user password.
|
579
603
|
*/
|
580
|
-
changePassword(form, options) {
|
604
|
+
async changePassword(form, options) {
|
581
605
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
582
606
|
}
|
583
607
|
/**
|
584
608
|
* @summary Get counts for your reports.
|
585
609
|
*/
|
586
|
-
getReportCount(form, options) {
|
610
|
+
async getReportCount(form, options) {
|
587
611
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
588
612
|
}
|
589
613
|
/**
|
590
614
|
* @summary Get your unread counts.
|
591
615
|
*/
|
592
|
-
getUnreadCount(options) {
|
616
|
+
async getUnreadCount(options) {
|
593
617
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
594
618
|
}
|
595
619
|
/**
|
596
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
597
621
|
*/
|
598
|
-
listInbox(form, options) {
|
622
|
+
async listInbox(form, options) {
|
599
623
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
|
600
624
|
}
|
601
625
|
/**
|
602
626
|
* @summary Verify your email
|
603
627
|
*/
|
604
|
-
verifyEmail(form, options) {
|
628
|
+
async verifyEmail(form, options) {
|
605
629
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
606
630
|
}
|
607
631
|
/**
|
608
632
|
* @summary Resend a verification email.
|
609
633
|
*/
|
610
|
-
resendVerificationEmail(form, options) {
|
634
|
+
async resendVerificationEmail(form, options) {
|
611
635
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
612
636
|
}
|
613
637
|
/**
|
614
638
|
* @summary List your saved content.
|
615
639
|
*/
|
616
|
-
listPersonSaved(form, options) {
|
640
|
+
async listPersonSaved(form, options) {
|
617
641
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
618
642
|
}
|
643
|
+
/**
|
644
|
+
* @summary List your read content.
|
645
|
+
*/
|
646
|
+
async listPersonRead(form, options) {
|
647
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
|
648
|
+
}
|
649
|
+
/**
|
650
|
+
* @summary List your hidden content.
|
651
|
+
*/
|
652
|
+
async listPersonHidden(form, options) {
|
653
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
|
654
|
+
}
|
655
|
+
/**
|
656
|
+
* @summary List your liked content.
|
657
|
+
*/
|
658
|
+
async listPersonLiked(form, options) {
|
659
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
|
660
|
+
}
|
619
661
|
/**
|
620
662
|
* @summary Add an admin to your site.
|
621
663
|
*/
|
622
|
-
addAdmin(form, options) {
|
664
|
+
async addAdmin(form, options) {
|
623
665
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
624
666
|
}
|
625
667
|
/**
|
626
668
|
* @summary Get the unread registration applications count.
|
627
669
|
*/
|
628
|
-
getUnreadRegistrationApplicationCount(options) {
|
670
|
+
async getUnreadRegistrationApplicationCount(options) {
|
629
671
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
630
672
|
}
|
631
673
|
/**
|
632
674
|
* @summary List the registration applications.
|
633
675
|
*/
|
634
|
-
listRegistrationApplications(form, options) {
|
676
|
+
async listRegistrationApplications(form, options) {
|
635
677
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
636
678
|
}
|
637
679
|
/**
|
638
680
|
* @summary Approve a registration application
|
639
681
|
*/
|
640
|
-
approveRegistrationApplication(form, options) {
|
682
|
+
async approveRegistrationApplication(form, options) {
|
641
683
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
642
684
|
}
|
643
685
|
/**
|
644
686
|
* @summary Get the application a user submitted when they first registered their account
|
645
687
|
*/
|
646
|
-
getRegistrationApplication(form, options) {
|
688
|
+
async getRegistrationApplication(form, options) {
|
647
689
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
648
690
|
}
|
649
691
|
/**
|
650
692
|
* @summary Purge / Delete a person from the database.
|
651
693
|
*/
|
652
|
-
purgePerson(form, options) {
|
694
|
+
async purgePerson(form, options) {
|
653
695
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
654
696
|
}
|
655
697
|
/**
|
656
698
|
* @summary Purge / Delete a community from the database.
|
657
699
|
*/
|
658
|
-
purgeCommunity(form, options) {
|
700
|
+
async purgeCommunity(form, options) {
|
659
701
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
660
702
|
}
|
661
703
|
/**
|
662
704
|
* @summary Purge / Delete a post from the database.
|
663
705
|
*/
|
664
|
-
purgePost(form, options) {
|
706
|
+
async purgePost(form, options) {
|
665
707
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
666
708
|
}
|
667
709
|
/**
|
668
710
|
* @summary Purge / Delete a comment from the database.
|
669
711
|
*/
|
670
|
-
purgeComment(form, options) {
|
712
|
+
async purgeComment(form, options) {
|
671
713
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
672
714
|
}
|
673
715
|
/**
|
674
716
|
* @summary Create a new custom emoji.
|
675
717
|
*/
|
676
|
-
createCustomEmoji(form, options) {
|
718
|
+
async createCustomEmoji(form, options) {
|
677
719
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
678
720
|
}
|
679
721
|
/**
|
680
722
|
* @summary Edit an existing custom emoji.
|
681
723
|
*/
|
682
|
-
editCustomEmoji(form, options) {
|
724
|
+
async editCustomEmoji(form, options) {
|
683
725
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
684
726
|
}
|
685
727
|
/**
|
686
728
|
* @summary Delete a custom emoji.
|
687
729
|
*/
|
688
|
-
deleteCustomEmoji(form, options) {
|
730
|
+
async deleteCustomEmoji(form, options) {
|
689
731
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
690
732
|
}
|
691
733
|
/**
|
692
734
|
* @summary List custom emojis
|
693
735
|
*/
|
694
|
-
listCustomEmojis(form, options) {
|
736
|
+
async listCustomEmojis(form, options) {
|
695
737
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
696
738
|
}
|
697
739
|
/**
|
698
740
|
* @summary Create a new tagline
|
699
741
|
*/
|
700
|
-
createTagline(form, options) {
|
742
|
+
async createTagline(form, options) {
|
701
743
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
702
744
|
}
|
703
745
|
/**
|
704
746
|
* @summary Edit an existing tagline
|
705
747
|
*/
|
706
|
-
editTagline(form, options) {
|
748
|
+
async editTagline(form, options) {
|
707
749
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
708
750
|
}
|
709
751
|
/**
|
710
752
|
* @summary Delete a tagline
|
711
753
|
*/
|
712
|
-
deleteTagline(form, options) {
|
754
|
+
async deleteTagline(form, options) {
|
713
755
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
714
756
|
}
|
715
757
|
/**
|
716
758
|
* @summary List taglines.
|
717
759
|
*/
|
718
|
-
listTaglines(form, options) {
|
760
|
+
async listTaglines(form, options) {
|
719
761
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
720
762
|
}
|
721
763
|
/**
|
@@ -739,55 +781,55 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
739
781
|
/**
|
740
782
|
* @summary Create a new oauth provider method
|
741
783
|
*/
|
742
|
-
createOAuthProvider(form, options) {
|
784
|
+
async createOAuthProvider(form, options) {
|
743
785
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
744
786
|
}
|
745
787
|
/**
|
746
788
|
* @summary Edit an existing oauth provider method
|
747
789
|
*/
|
748
|
-
editOAuthProvider(form, options) {
|
790
|
+
async editOAuthProvider(form, options) {
|
749
791
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
750
792
|
}
|
751
793
|
/**
|
752
794
|
* @summary Delete an oauth provider method
|
753
795
|
*/
|
754
|
-
deleteOAuthProvider(form, options) {
|
796
|
+
async deleteOAuthProvider(form, options) {
|
755
797
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
756
798
|
}
|
757
799
|
/**
|
758
800
|
* @summary Authenticate with OAuth
|
759
801
|
*/
|
760
|
-
authenticateWithOAuth(form, options) {
|
802
|
+
async authenticateWithOAuth(form, options) {
|
761
803
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
762
804
|
}
|
763
805
|
/**
|
764
806
|
* @summary Fetch federated instances.
|
765
807
|
*/
|
766
|
-
getFederatedInstances(options) {
|
808
|
+
async getFederatedInstances(options) {
|
767
809
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
768
810
|
}
|
769
811
|
/**
|
770
812
|
* @summary List user reports.
|
771
813
|
*/
|
772
|
-
listReports(form, options) {
|
814
|
+
async listReports(form, options) {
|
773
815
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
774
816
|
}
|
775
817
|
/**
|
776
818
|
* @summary Block an instance as user.
|
777
819
|
*/
|
778
|
-
userBlockInstance(form, options) {
|
820
|
+
async userBlockInstance(form, options) {
|
779
821
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
780
822
|
}
|
781
823
|
/**
|
782
824
|
* @summary Globally block an instance as admin.
|
783
825
|
*/
|
784
|
-
adminBlockInstance(form, options) {
|
826
|
+
async adminBlockInstance(form, options) {
|
785
827
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
786
828
|
}
|
787
829
|
/**
|
788
830
|
* @summary Globally allow an instance as admin.
|
789
831
|
*/
|
790
|
-
adminAllowInstance(form, options) {
|
832
|
+
async adminAllowInstance(form, options) {
|
791
833
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
792
834
|
}
|
793
835
|
/**
|
@@ -817,26 +859,26 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
817
859
|
/**
|
818
860
|
* @summary Upload new community icon.
|
819
861
|
*/
|
820
|
-
async uploadCommunityIcon(image, options) {
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m",
|
862
|
+
async uploadCommunityIcon(query, image, options) {
|
863
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
|
822
864
|
}
|
823
865
|
/**
|
824
866
|
* @summary Delete the community icon.
|
825
867
|
*/
|
826
|
-
async deleteCommunityIcon(options) {
|
827
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon",
|
868
|
+
async deleteCommunityIcon(form, options) {
|
869
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
|
828
870
|
}
|
829
871
|
/**
|
830
872
|
* @summary Upload new community banner.
|
831
873
|
*/
|
832
|
-
async uploadCommunityBanner(image, options) {
|
833
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m",
|
874
|
+
async uploadCommunityBanner(query, image, options) {
|
875
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
|
834
876
|
}
|
835
877
|
/**
|
836
878
|
* @summary Delete the community banner.
|
837
879
|
*/
|
838
|
-
async deleteCommunityBanner(options) {
|
839
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner",
|
880
|
+
async deleteCommunityBanner(form, options) {
|
881
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
|
840
882
|
}
|
841
883
|
/**
|
842
884
|
* @summary Upload new site icon.
|
@@ -868,12 +910,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
868
910
|
async uploadImage(image, options) {
|
869
911
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
870
912
|
}
|
871
|
-
/**
|
872
|
-
* @summary Delete a pictrs image
|
873
|
-
*/
|
874
|
-
async deleteImage(form, options) {
|
875
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
876
|
-
}
|
877
913
|
/**
|
878
914
|
* @summary Health check for image functionality
|
879
915
|
*/
|
@@ -913,6 +949,9 @@ _LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
|
|
913
949
|
});
|
914
950
|
return response.json();
|
915
951
|
};
|
952
|
+
_LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
|
953
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
|
954
|
+
};
|
916
955
|
_LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
|
917
956
|
let response;
|
918
957
|
if (type_ === HttpType.Get) {
|
@@ -1014,18 +1053,32 @@ __decorate([
|
|
1014
1053
|
], LemmyHttp.prototype, "validateAuth", null);
|
1015
1054
|
__decorate([
|
1016
1055
|
(0, runtime_1.Security)("bearerAuth"),
|
1017
|
-
(0, runtime_1.Get)("/account/
|
1056
|
+
(0, runtime_1.Get)("/account/media/list"),
|
1018
1057
|
(0, runtime_1.Tags)("Account", "Media"),
|
1019
1058
|
__param(0, (0, runtime_1.Queries)()),
|
1020
1059
|
__param(1, (0, runtime_1.Inject)())
|
1021
1060
|
], LemmyHttp.prototype, "listMedia", null);
|
1022
1061
|
__decorate([
|
1023
1062
|
(0, runtime_1.Security)("bearerAuth"),
|
1024
|
-
(0, runtime_1.
|
1063
|
+
(0, runtime_1.Delete)("/account/media"),
|
1064
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1065
|
+
__param(0, (0, runtime_1.Queries)()),
|
1066
|
+
__param(1, (0, runtime_1.Inject)())
|
1067
|
+
], LemmyHttp.prototype, "deleteMedia", null);
|
1068
|
+
__decorate([
|
1069
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1070
|
+
(0, runtime_1.Delete)("/image"),
|
1071
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1072
|
+
__param(0, (0, runtime_1.Queries)()),
|
1073
|
+
__param(1, (0, runtime_1.Inject)())
|
1074
|
+
], LemmyHttp.prototype, "deleteMediaAdmin", null);
|
1075
|
+
__decorate([
|
1076
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1077
|
+
(0, runtime_1.Get)("/image/list"),
|
1025
1078
|
(0, runtime_1.Tags)("Admin", "Media"),
|
1026
1079
|
__param(0, (0, runtime_1.Queries)()),
|
1027
1080
|
__param(1, (0, runtime_1.Inject)())
|
1028
|
-
], LemmyHttp.prototype, "
|
1081
|
+
], LemmyHttp.prototype, "listMediaAdmin", null);
|
1029
1082
|
__decorate([
|
1030
1083
|
(0, runtime_1.Security)("bearerAuth"),
|
1031
1084
|
(0, runtime_1.Post)("/account/auth/totp/update"),
|
@@ -1173,6 +1226,20 @@ __decorate([
|
|
1173
1226
|
__param(0, (0, runtime_1.Queries)()),
|
1174
1227
|
__param(1, (0, runtime_1.Inject)())
|
1175
1228
|
], LemmyHttp.prototype, "getRandomCommunity", null);
|
1229
|
+
__decorate([
|
1230
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1231
|
+
(0, runtime_1.Post)("/community/report"),
|
1232
|
+
(0, runtime_1.Tags)("Community"),
|
1233
|
+
__param(0, (0, runtime_1.Body)()),
|
1234
|
+
__param(1, (0, runtime_1.Inject)())
|
1235
|
+
], LemmyHttp.prototype, "createCommunityReport", null);
|
1236
|
+
__decorate([
|
1237
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1238
|
+
(0, runtime_1.Put)("/community/report/resolve"),
|
1239
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
1240
|
+
__param(0, (0, runtime_1.Body)()),
|
1241
|
+
__param(1, (0, runtime_1.Inject)())
|
1242
|
+
], LemmyHttp.prototype, "resolveCommunityReport", null);
|
1176
1243
|
__decorate([
|
1177
1244
|
(0, runtime_1.Security)("bearerAuth"),
|
1178
1245
|
(0, runtime_1.Post)("/post"),
|
@@ -1494,11 +1561,11 @@ __decorate([
|
|
1494
1561
|
], LemmyHttp.prototype, "banPerson", null);
|
1495
1562
|
__decorate([
|
1496
1563
|
(0, runtime_1.Security)("bearerAuth"),
|
1497
|
-
(0, runtime_1.Get)("/admin/
|
1564
|
+
(0, runtime_1.Get)("/admin/users"),
|
1498
1565
|
(0, runtime_1.Tags)("Admin", "Miscellaneous"),
|
1499
1566
|
__param(0, (0, runtime_1.Queries)()),
|
1500
1567
|
__param(1, (0, runtime_1.Inject)())
|
1501
|
-
], LemmyHttp.prototype, "
|
1568
|
+
], LemmyHttp.prototype, "listUsers", null);
|
1502
1569
|
__decorate([
|
1503
1570
|
(0, runtime_1.Security)("bearerAuth"),
|
1504
1571
|
(0, runtime_1.Post)("/account/block/person"),
|
@@ -1591,6 +1658,27 @@ __decorate([
|
|
1591
1658
|
__param(0, (0, runtime_1.Queries)()),
|
1592
1659
|
__param(1, (0, runtime_1.Inject)())
|
1593
1660
|
], LemmyHttp.prototype, "listPersonSaved", null);
|
1661
|
+
__decorate([
|
1662
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1663
|
+
(0, runtime_1.Get)("/account/read"),
|
1664
|
+
(0, runtime_1.Tags)("Account"),
|
1665
|
+
__param(0, (0, runtime_1.Queries)()),
|
1666
|
+
__param(1, (0, runtime_1.Inject)())
|
1667
|
+
], LemmyHttp.prototype, "listPersonRead", null);
|
1668
|
+
__decorate([
|
1669
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1670
|
+
(0, runtime_1.Get)("/account/hidden"),
|
1671
|
+
(0, runtime_1.Tags)("Account"),
|
1672
|
+
__param(0, (0, runtime_1.Queries)()),
|
1673
|
+
__param(1, (0, runtime_1.Inject)())
|
1674
|
+
], LemmyHttp.prototype, "listPersonHidden", null);
|
1675
|
+
__decorate([
|
1676
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1677
|
+
(0, runtime_1.Get)("/account/liked"),
|
1678
|
+
(0, runtime_1.Tags)("Account"),
|
1679
|
+
__param(0, (0, runtime_1.Queries)()),
|
1680
|
+
__param(1, (0, runtime_1.Inject)())
|
1681
|
+
], LemmyHttp.prototype, "listPersonLiked", null);
|
1594
1682
|
__decorate([
|
1595
1683
|
(0, runtime_1.Security)("bearerAuth"),
|
1596
1684
|
(0, runtime_1.Post)("/admin/add"),
|
@@ -1823,27 +1911,31 @@ __decorate([
|
|
1823
1911
|
(0, runtime_1.Security)("bearerAuth"),
|
1824
1912
|
(0, runtime_1.Post)("/community/icon"),
|
1825
1913
|
(0, runtime_1.Tags)("Community", "Media"),
|
1826
|
-
__param(0, (0, runtime_1.
|
1827
|
-
__param(1, (0, runtime_1.
|
1914
|
+
__param(0, (0, runtime_1.Queries)()),
|
1915
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
1916
|
+
__param(2, (0, runtime_1.Inject)())
|
1828
1917
|
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
1829
1918
|
__decorate([
|
1830
1919
|
(0, runtime_1.Security)("bearerAuth"),
|
1831
1920
|
(0, runtime_1.Delete)("/community/icon"),
|
1832
1921
|
(0, runtime_1.Tags)("Community", "Media"),
|
1833
|
-
__param(0, (0, runtime_1.
|
1922
|
+
__param(0, (0, runtime_1.Body)()),
|
1923
|
+
__param(1, (0, runtime_1.Inject)())
|
1834
1924
|
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
1835
1925
|
__decorate([
|
1836
1926
|
(0, runtime_1.Security)("bearerAuth"),
|
1837
1927
|
(0, runtime_1.Post)("/community/banner"),
|
1838
1928
|
(0, runtime_1.Tags)("Community", "Media"),
|
1839
|
-
__param(0, (0, runtime_1.
|
1840
|
-
__param(1, (0, runtime_1.
|
1929
|
+
__param(0, (0, runtime_1.Queries)()),
|
1930
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
1931
|
+
__param(2, (0, runtime_1.Inject)())
|
1841
1932
|
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
1842
1933
|
__decorate([
|
1843
1934
|
(0, runtime_1.Security)("bearerAuth"),
|
1844
1935
|
(0, runtime_1.Delete)("/community/banner"),
|
1845
1936
|
(0, runtime_1.Tags)("Community", "Media"),
|
1846
|
-
__param(0, (0, runtime_1.
|
1937
|
+
__param(0, (0, runtime_1.Body)()),
|
1938
|
+
__param(1, (0, runtime_1.Inject)())
|
1847
1939
|
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
1848
1940
|
__decorate([
|
1849
1941
|
(0, runtime_1.Security)("bearerAuth"),
|
@@ -1879,14 +1971,7 @@ __decorate([
|
|
1879
1971
|
__param(1, (0, runtime_1.Inject)())
|
1880
1972
|
], LemmyHttp.prototype, "uploadImage", null);
|
1881
1973
|
__decorate([
|
1882
|
-
(0, runtime_1.
|
1883
|
-
(0, runtime_1.Delete)("/image"),
|
1884
|
-
(0, runtime_1.Tags)("Media"),
|
1885
|
-
__param(0, (0, runtime_1.Queries)()),
|
1886
|
-
__param(1, (0, runtime_1.Inject)())
|
1887
|
-
], LemmyHttp.prototype, "deleteImage", null);
|
1888
|
-
__decorate([
|
1889
|
-
(0, runtime_1.Get)("image/health"),
|
1974
|
+
(0, runtime_1.Get)("/image/health"),
|
1890
1975
|
(0, runtime_1.Tags)("Media"),
|
1891
1976
|
__param(0, (0, runtime_1.Inject)())
|
1892
1977
|
], LemmyHttp.prototype, "imageHealth", null);
|