/* tslint:disable */ /* eslint-disable */ /** * Keycloak Admin REST API * This is a REST API reference for the Keycloak Admin * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { ServerInfoRepresentation, ServerInfoRepresentationFromJSON, ServerInfoRepresentationToJSON, } from '../models'; /** * */ export class RootApi extends runtime.BaseAPI { /** * Get themes, social providers, auth providers, and event listeners available on this server */ async rootGetRaw(): Promise> { const queryParameters: runtime.HTTPQuery = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = typeof token === 'function' ? token("access_token", []) : token; if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } const response = await this.request({ path: `/`, method: 'GET', headers: headerParameters, query: queryParameters, }); return new runtime.JSONApiResponse(response, (jsonValue) => ServerInfoRepresentationFromJSON(jsonValue)); } /** * Get themes, social providers, auth providers, and event listeners available on this server */ async rootGet(): Promise { const response = await this.rootGetRaw(); return await response.value(); } }