@@ -62,11 +62,13 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
62
62
import { ChangePassword } from "./types/ChangePassword" ;
63
63
import { CommentReportResponse } from "./types/CommentReportResponse" ;
64
64
import { CommentResponse } from "./types/CommentResponse" ;
65
+ import { CommunityReportResponse } from "./types/CommunityReportResponse" ;
65
66
import { CommunityResponse } from "./types/CommunityResponse" ;
66
67
import { CreateComment } from "./types/CreateComment" ;
67
68
import { CreateCommentLike } from "./types/CreateCommentLike" ;
68
69
import { CreateCommentReport } from "./types/CreateCommentReport" ;
69
70
import { CreateCommunity } from "./types/CreateCommunity" ;
71
+ import { CreateCommunityReport } from "./types/CreateCommunityReport" ;
70
72
import { CreateCommunityTag } from "./types/CreateCommunityTag" ;
71
73
import { CreateCustomEmoji } from "./types/CreateCustomEmoji" ;
72
74
import { CreateOAuthProvider } from "./types/CreateOAuthProvider" ;
@@ -144,6 +146,7 @@ import { RemoveComment } from "./types/RemoveComment";
144
146
import { RemoveCommunity } from "./types/RemoveCommunity" ;
145
147
import { RemovePost } from "./types/RemovePost" ;
146
148
import { ResolveCommentReport } from "./types/ResolveCommentReport" ;
149
+ import { ResolveCommunityReport } from "./types/ResolveCommunityReport" ;
147
150
import { ResolveObject } from "./types/ResolveObject" ;
148
151
import { ResolveObjectResponse } from "./types/ResolveObjectResponse" ;
149
152
import { ResolvePostReport } from "./types/ResolvePostReport" ;
@@ -844,6 +847,42 @@ export class LemmyHttp extends Controller {
844
847
) ;
845
848
}
846
849
850
+ /**
851
+ * @summary Create a report for a community.
852
+ */
853
+ @Security ( "bearerAuth" )
854
+ @Post ( "/community/report" )
855
+ @Tags ( "Community" )
856
+ async createCommunityReport (
857
+ @Body ( ) form : CreateCommunityReport ,
858
+ @Inject ( ) options ?: RequestOptions ,
859
+ ) {
860
+ return this . #wrapper< CreateCommunityReport , CommunityReportResponse > (
861
+ HttpType . Post ,
862
+ "/community/report" ,
863
+ form ,
864
+ options ,
865
+ ) ;
866
+ }
867
+
868
+ /**
869
+ * @summary Resolve a report for a private message.
870
+ */
871
+ @Security ( "bearerAuth" )
872
+ @Put ( "/community/report/resolve" )
873
+ @Tags ( "Community" , "Admin" )
874
+ async resolveCommunityReport (
875
+ @Body ( ) form : ResolveCommunityReport ,
876
+ @Inject ( ) options ?: RequestOptions ,
877
+ ) {
878
+ return this . #wrapper< ResolveCommunityReport , CommunityReportResponse > (
879
+ HttpType . Put ,
880
+ "/community/report/resolve" ,
881
+ form ,
882
+ options ,
883
+ ) ;
884
+ }
885
+
847
886
/**
848
887
* @summary Create a post.
849
888
*/
0 commit comments