lemmy-js-client 0.20.0-reports-combined.3 → 0.20.0-show-mod-reports.0

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