/** * @api.video/nodejs-client * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated. * Do not edit the class manually. */ import HttpClient, { ApiResponseHeaders } from '../HttpClient'; import AccessToken from '../model/AccessToken'; import AuthenticatePayload from '../model/AuthenticatePayload'; import RefreshTokenPayload from '../model/RefreshTokenPayload'; /** * no description */ export default class AdvancedAuthenticationApi { private httpClient; constructor(httpClient: HttpClient); /** * Returns a bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication). * Get Bearer Token * @param authenticatePayload */ authenticate(authenticatePayload: AuthenticatePayload): Promise; /** * Returns a bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication). * Get Bearer Token * @param authenticatePayload */ authenticateWithResponseHeaders(authenticatePayload: AuthenticatePayload): Promise<{ headers: ApiResponseHeaders; body: AccessToken; }>; /** * Accepts the old bearer token and returns a new bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication). * Refresh Bearer Token * @param refreshTokenPayload */ refresh(refreshTokenPayload: RefreshTokenPayload): Promise; /** * Accepts the old bearer token and returns a new bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication). * Refresh Bearer Token * @param refreshTokenPayload */ refreshWithResponseHeaders(refreshTokenPayload: RefreshTokenPayload): Promise<{ headers: ApiResponseHeaders; body: AccessToken; }>; }