/** * 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. */ import { ClientMetadata } from './ClientMetadata'; import { ClientTypeEnum } from './ClientTypeEnum'; /** * Response from `GET /auth/grant/peek?user_code=...`. Used by the dashboard * authorize page to render `Authorize {clientName}?` before the user clicks * Approve. Does NOT return the grant_code — only the public-safe metadata. * @export * @interface GrantPeekResponse */ export interface GrantPeekResponse { /** * * @type {ClientTypeEnum} * @memberof GrantPeekResponse */ clientType: ClientTypeEnum; /** * * @type {ClientMetadata} * @memberof GrantPeekResponse */ clientMetadata?: ClientMetadata; /** * CF-geolocated `city, region, country` of the `/auth/grant/code` * requester. Omitted off-edge (preview / local). * @type {string} * @memberof GrantPeekResponse */ requesterLocation?: string; /** * CF-geolocated `city, region, country` of the dashboard user * viewing the consent screen. Omitted off-edge. * @type {string} * @memberof GrantPeekResponse */ approverLocation?: string; /** * `true` when both `cf-ipcountry` values are known and differ. * Omitted (not `false`) when either country is unknown — callers * must treat omitted as "do not warn". * @type {boolean} * @memberof GrantPeekResponse */ countryMismatch?: boolean; } export declare function GrantPeekResponseFromJSON(json: any): GrantPeekResponse; export declare function GrantPeekResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantPeekResponse; export declare function GrantPeekResponseToJSON(value?: GrantPeekResponse | null): any;