/**
*
* # Introduction The Rest API is the webservices that allow you to automatically manage the wallets and operations. Many DIRECTKIT functionalities are also available manually using the BACKOFFICE # Authentication This service strictly follow the chapter 4.4.2 "Access Token request" of the RFC 6749 "the Oauth2 2.0 Authorization Framework". This Api is consume by the client api, a restrict control on IP is applied.
The unique method exposed by this api allow customers to ask for a unique bearer access token. A bearer allow the customer to consume their api Rest without the need of sending their plain text login and password.
This method has these scenario:
- In case the bearer do not exist, the method create a new bearer.
- In case the bearer already exist, it return the actual bearer with the remaining time left.
- In case the bearer lifetime is over, this method create a new bearer and delete the previous one.
*
* The version of the OpenAPI document: 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 * as runtime from '../runtime';
import type { Bearer } from '../models';
export interface TokenRequest {
authorization: string;
grantType: string;
}
/**
*
*/
export declare class OAuth2Api extends runtime.BaseAPI {
/**
* Client credential grant use to request access token
*/
tokenRaw(requestParameters: TokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>;
/**
* Client credential grant use to request access token
*/
token(requestParameters: TokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise;
}