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