lemmy-js-client 1.0.0-alpha.1 → 1.0.0-community-reports.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/http.d.ts CHANGED
@@ -18,11 +18,13 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
18
18
  import { ChangePassword } from "./types/ChangePassword";
19
19
  import { CommentReportResponse } from "./types/CommentReportResponse";
20
20
  import { CommentResponse } from "./types/CommentResponse";
21
+ import { CommunityReportResponse } from "./types/CommunityReportResponse";
21
22
  import { CommunityResponse } from "./types/CommunityResponse";
22
23
  import { CreateComment } from "./types/CreateComment";
23
24
  import { CreateCommentLike } from "./types/CreateCommentLike";
24
25
  import { CreateCommentReport } from "./types/CreateCommentReport";
25
26
  import { CreateCommunity } from "./types/CreateCommunity";
27
+ import { CreateCommunityReport } from "./types/CreateCommunityReport";
26
28
  import { CreateCommunityTag } from "./types/CreateCommunityTag";
27
29
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
28
30
  import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
@@ -89,6 +91,7 @@ import { RemoveComment } from "./types/RemoveComment";
89
91
  import { RemoveCommunity } from "./types/RemoveCommunity";
90
92
  import { RemovePost } from "./types/RemovePost";
91
93
  import { ResolveCommentReport } from "./types/ResolveCommentReport";
94
+ import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
92
95
  import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
93
96
  import { ResolvePostReport } from "./types/ResolvePostReport";
94
97
  import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
@@ -297,6 +300,14 @@ export declare class LemmyHttp extends Controller {
297
300
  * @summary Get a random community.
298
301
  */
299
302
  getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
303
+ /**
304
+ * @summary Create a report for a community.
305
+ */
306
+ createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
307
+ /**
308
+ * @summary Resolve a report for a private message.
309
+ */
310
+ resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
300
311
  /**
301
312
  * @summary Create a post.
302
313
  */
package/dist/http.js CHANGED
@@ -268,6 +268,18 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
268
268
  async getRandomCommunity(form, options) {
269
269
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
270
270
  }
271
+ /**
272
+ * @summary Create a report for a community.
273
+ */
274
+ async createCommunityReport(form, options) {
275
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
276
+ }
277
+ /**
278
+ * @summary Resolve a report for a private message.
279
+ */
280
+ async resolveCommunityReport(form, options) {
281
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
282
+ }
271
283
  /**
272
284
  * @summary Create a post.
273
285
  */
@@ -1193,6 +1205,20 @@ __decorate([
1193
1205
  __param(0, (0, runtime_1.Queries)()),
1194
1206
  __param(1, (0, runtime_1.Inject)())
1195
1207
  ], LemmyHttp.prototype, "getRandomCommunity", null);
1208
+ __decorate([
1209
+ (0, runtime_1.Security)("bearerAuth"),
1210
+ (0, runtime_1.Post)("/community/report"),
1211
+ (0, runtime_1.Tags)("Community"),
1212
+ __param(0, (0, runtime_1.Body)()),
1213
+ __param(1, (0, runtime_1.Inject)())
1214
+ ], LemmyHttp.prototype, "createCommunityReport", null);
1215
+ __decorate([
1216
+ (0, runtime_1.Security)("bearerAuth"),
1217
+ (0, runtime_1.Put)("/community/report/resolve"),
1218
+ (0, runtime_1.Tags)("Community", "Admin"),
1219
+ __param(0, (0, runtime_1.Body)()),
1220
+ __param(1, (0, runtime_1.Inject)())
1221
+ ], LemmyHttp.prototype, "resolveCommunityReport", null);
1196
1222
  __decorate([
1197
1223
  (0, runtime_1.Security)("bearerAuth"),
1198
1224
  (0, runtime_1.Post)("/post"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-alpha.1",
4
+ "version": "1.0.0-community-reports.0",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "typescript": "^5.5.4",
44
44
  "typescript-eslint": "^8.7.0"
45
45
  },
46
- "packageManager": "pnpm@10.8.0",
46
+ "packageManager": "pnpm@10.8.1",
47
47
  "types": "./dist/index.d.ts",
48
48
  "lint-staged": {
49
49
  "*.{ts,tsx,js}": [