/** * 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 * as runtime from '../runtime'; import { GrantApproveRequest, GrantApproveResponse, GrantCodeRequest, GrantCodeResponse, GrantPeekResponse, GrantTokenRequest, GrantTokenResponse } from '../models'; export interface ApproveGrantRequest { grantApproveRequest: GrantApproveRequest; } export interface PeekGrantRequest { userCode: string; } export interface PollGrantTokenRequest { grantTokenRequest: GrantTokenRequest; } export interface RequestGrantCodeRequest { grantCodeRequest?: GrantCodeRequest; } /** * */ export declare class ClientGrantApi extends runtime.BaseAPI { /** * Called by the dashboard authorize page on behalf of the authenticated user. Resolves a pending grant identified by `user_code`. Idempotent against the same user_code only while the grant is still pending. * Approve or deny a pending client grant */ approveGrantRaw(requestParameters: ApproveGrantRequest, initOverrides?: RequestInit): Promise>; /** * Called by the dashboard authorize page on behalf of the authenticated user. Resolves a pending grant identified by `user_code`. Idempotent against the same user_code only while the grant is still pending. * Approve or deny a pending client grant */ approveGrant(requestParameters: ApproveGrantRequest, initOverrides?: RequestInit): Promise; /** * Used by the dashboard authorize page to render `Authorize {clientName}?` before the user clicks Approve. Requires the dashboard user to be authenticated. Does NOT return the `grant_code` — only the metadata that\'s safe to display in a logged-in browser. * Read public-safe metadata about a pending grant */ peekGrantRaw(requestParameters: PeekGrantRequest, initOverrides?: RequestInit): Promise>; /** * Used by the dashboard authorize page to render `Authorize {clientName}?` before the user clicks Approve. Requires the dashboard user to be authenticated. Does NOT return the `grant_code` — only the metadata that\'s safe to display in a logged-in browser. * Read public-safe metadata about a pending grant */ peekGrant(requestParameters: PeekGrantRequest, initOverrides?: RequestInit): Promise; /** * Polled by the client to check whether the grant has been approved or denied. Public — the `grant_code` itself is the proof of identity. Status follows RFC 8628 conventions: `authorization_pending`, `slow_down`, `approved`, `access_denied`, `expired_token`. On `approved`, the response includes the minted client JWT. * Poll for the result of a client grant */ pollGrantTokenRaw(requestParameters: PollGrantTokenRequest, initOverrides?: RequestInit): Promise>; /** * Polled by the client to check whether the grant has been approved or denied. Public — the `grant_code` itself is the proof of identity. Status follows RFC 8628 conventions: `authorization_pending`, `slow_down`, `approved`, `access_denied`, `expired_token`. On `approved`, the response includes the minted client JWT. * Poll for the result of a client grant */ pollGrantToken(requestParameters: PollGrantTokenRequest, initOverrides?: RequestInit): Promise; /** * Public — the caller has no credentials yet. Generates a `grant_code` (long secret used by the polling client) and a `user_code` (short code shown to the user for visual verification). Both are stored in Redis with a 15-minute TTL. * Initiate a client grant request */ requestGrantCodeRaw(requestParameters: RequestGrantCodeRequest, initOverrides?: RequestInit): Promise>; /** * Public — the caller has no credentials yet. Generates a `grant_code` (long secret used by the polling client) and a `user_code` (short code shown to the user for visual verification). Both are stored in Redis with a 15-minute TTL. * Initiate a client grant request */ requestGrantCode(requestParameters?: RequestGrantCodeRequest, initOverrides?: RequestInit): Promise; }