/** * TTLock * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3.1.9 * * * 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 { OAuthResponse } from '../models/index'; export interface TokenRequest { clientId: string; clientSecret: string; username?: string | null; password?: string | null; grantType?: string | null; refreshToken?: string | null; } /** * */ export declare class OAuthApi extends runtime.BaseAPI { /** * Clouds grant access by OAuth 2.0 Resource Owner Password grant type. You have to request with username and password, all the cloud apis should be requested with access token. When access token expired, you can refresh it by this api. The validity period of refresh token is 10 years since it\'s created. * Get or refresh access token */ tokenRaw(requestParameters: TokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Clouds grant access by OAuth 2.0 Resource Owner Password grant type. You have to request with username and password, all the cloud apis should be requested with access token. When access token expired, you can refresh it by this api. The validity period of refresh token is 10 years since it\'s created. * Get or refresh access token */ token(requestParameters: TokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } //# sourceMappingURL=OAuthApi.d.ts.map