@@ -44,10 +44,11 @@ import {
4444 ListReportsI ,
4545 ListTaglinesI ,
4646 ResolveObjectI ,
47- SearchI ,
4847 UploadImage ,
4948 VERSION ,
5049 GetFederatedInstancesI ,
50+ ListPersonsI ,
51+ SearchI ,
5152} from "./other_types" ;
5253import { AddAdmin } from "./types/AddAdmin" ;
5354import { AddAdminResponse } from "./types/AddAdminResponse" ;
@@ -142,8 +143,6 @@ import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport
142143import { SaveComment } from "./types/SaveComment" ;
143144import { SavePost } from "./types/SavePost" ;
144145import { SaveUserSettings } from "./types/SaveUserSettings" ;
145- import { Search } from "./types/Search" ;
146- import { SearchResponse } from "./types/SearchResponse" ;
147146import { SiteResponse } from "./types/SiteResponse" ;
148147import { TransferCommunity } from "./types/TransferCommunity" ;
149148import { VerifyEmail } from "./types/VerifyEmail" ;
@@ -221,10 +220,15 @@ import { UnreadCountsResponse } from "./types/UnreadCountsResponse";
221220import { AdminOAuthProvider } from "./types/AdminOAuthProvider" ;
222221import { CreatePostWarning } from "./types/CreatePostWarning" ;
223222import { CreateCommentWarning } from "./types/CreateCommentWarning" ;
223+ import { ResolveObjectView } from "./types/ResolveObjectView" ;
224+ import { ListPersons } from "./types/ListPersons" ;
225+ import { PersonView } from "./types/PersonView" ;
224226import { GetMultiCommunity } from "./types/GetMultiCommunity" ;
225227import { ListMultiCommunities } from "./types/ListMultiCommunities" ;
226228import { NodeInfo } from "./types/NodeInfo" ;
227229import { UserSettingsBackup } from "./types/UserSettingsBackup" ;
230+ import { SearchResponse } from "./types/SearchResponse" ;
231+ import { Search } from "./types/Search" ;
228232
229233enum HttpType {
230234 Get = "GET" ,
@@ -667,7 +671,7 @@ export class LemmyHttp extends LemmyController {
667671 @Queries ( ) form : ResolveObjectI ,
668672 @Inject ( ) options ?: RequestOptions ,
669673 ) {
670- return this . wrapper < ResolveObject , SearchResponse > (
674+ return this . wrapper < ResolveObject , ResolveObjectView > (
671675 HttpType . Get ,
672676 "/resolve_object" ,
673677 form ,
@@ -1786,6 +1790,25 @@ export class LemmyHttp extends LemmyController {
17861790 ) ;
17871791 }
17881792
1793+ /**
1794+ * @summary List persons.
1795+ */
1796+ @Security ( "bearerAuth" )
1797+ @Security ( { } )
1798+ @Get ( "/person/list" )
1799+ @Tags ( "Person" )
1800+ async listPersons (
1801+ @Queries ( ) form : ListPersonsI = { } ,
1802+ @Inject ( ) options ?: RequestOptions ,
1803+ ) {
1804+ return this . wrapper < ListPersons , PagedResponse < PersonView > > (
1805+ HttpType . Get ,
1806+ "/person/list" ,
1807+ form ,
1808+ options ,
1809+ ) ;
1810+ }
1811+
17891812 /**
17901813 * @summary Ban a person from your site.
17911814 */
0 commit comments