@climatepartner/climatepartner-api-sdk
Version:
The ClimatePartner API provides one uniform public API to customers of ClimatePartner.
80 lines (79 loc) • 3.29 kB
TypeScript
/**
* Unified API STS Service Public
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import { type RequestArgs, BaseAPI } from '../base';
import type { TokenResponse } from '../models';
/**
* SecureTokenServiceApi - axios parameter creator
*/
export declare const SecureTokenServiceApiAxiosParamCreator: (configuration?: Configuration) => {
/**
*
* @summary Authenticate to Unified API
* @param {object} body
* @param {string} [disableCache] If set to value \'true\' or \'True\' or \'1\', a new token will be generated on every request
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
token: (body: object, disableCache?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* SecureTokenServiceApi - functional programming interface
*/
export declare const SecureTokenServiceApiFp: (configuration?: Configuration) => {
/**
*
* @summary Authenticate to Unified API
* @param {object} body
* @param {string} [disableCache] If set to value \'true\' or \'True\' or \'1\', a new token will be generated on every request
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
token(body: object, disableCache?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenResponse>>;
};
/**
* SecureTokenServiceApi - factory interface
*/
export declare const SecureTokenServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
*
* @summary Authenticate to Unified API
* @param {SecureTokenServiceApiTokenRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
token(requestParameters: SecureTokenServiceApiTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<TokenResponse>;
};
/**
* Request parameters for token operation in SecureTokenServiceApi.
*/
export interface SecureTokenServiceApiTokenRequest {
readonly body: object;
/**
* If set to value \'true\' or \'True\' or \'1\', a new token will be generated on every request
*/
readonly disableCache?: string;
}
/**
* SecureTokenServiceApi - object-oriented interface
*/
export declare class SecureTokenServiceApi extends BaseAPI {
/**
*
* @summary Authenticate to Unified API
* @param {SecureTokenServiceApiTokenRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
token(requestParameters: SecureTokenServiceApiTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TokenResponse, any, {}>>;
}