/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import type { WebitelImApiGatewayV1Identity } from './webitelImApiGatewayV1Identity'; export interface WebitelImApiGatewayV1TokenRequest { /** * The client identifier issued to the client during the registration process. * REQUIRED, if the client is not authenticating with the authorization server. * May be transmitted in header: [X-Webitel-Client]. */ clientId?: string; /** * REQUIRED. The client secret. The client MAY omit the * parameter if the client secret is an empty string. * * Including the client credentials in the request-body using the two * parameters is NOT RECOMMENDED and SHOULD be limited to clients unable * to directly utilize the HTTP Basic authentication scheme (or other * password-based HTTP authentication schemes). The parameters can only * be transmitted in the request-body and MUST NOT be included in the * request URI. * * Keep it a secret. */ clientSecret?: string; /** * Authorization code grant. * REQUIRED. When grant_type is set to "authorization_code". */ code?: string; /** * Identity of the end-User account association. * REQUIRED. When grant_type is set to "identity". */ identity?: WebitelImApiGatewayV1Identity; /** * Refresh token string to obtain NEW access token. * REQUIRED. When grant_type is set to "refresh_token". */ refreshToken?: string; scope?: string[]; state?: string; }