import { ApiResponse , RequestOptions } from '../core' ; import { ListSitesResponse , listSitesResponseSchema , } from '../models/listSitesResponse' ; import { BaseApi } from './baseApi' ; export class SitesApi extends BaseApi { return async listSites ( requestOptions ? ) { const req = this . createRequest ( 'GET' , '/v2/sites' ) ; return req . callAsJson ( listSitesResponseSchema , requestOptions ) ; } }