/** * Dashboard API * Dashboard API documentation * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Response from `POST /auth/grant/token`. The `status` field follows * RFC 8628's "error-via-200" convention so the client can branch its polling * loop on `status` without interpreting HTTP error codes. * @export * @interface GrantTokenResponse */ export interface GrantTokenResponse { /** * Current state of the grant. * @type {string} * @memberof GrantTokenResponse */ status: GrantTokenResponseStatusEnum; /** * The minted client JWT. Present only when `status === "approved"`. * @type {string} * @memberof GrantTokenResponse */ jwt?: string; /** * Always `bearer` when a token is returned. * @type {string} * @memberof GrantTokenResponse */ tokenType?: string; } /** * @export * @enum {string} */ export declare enum GrantTokenResponseStatusEnum { AuthorizationPending = "authorization_pending", Approved = "approved", AccessDenied = "access_denied", ExpiredToken = "expired_token", SlowDown = "slow_down" } export declare function GrantTokenResponseFromJSON(json: any): GrantTokenResponse; export declare function GrantTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantTokenResponse; export declare function GrantTokenResponseToJSON(value?: GrantTokenResponse | null): any;