/** * 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 { CreateTokenResponse, PostTokenFields, TokenMeResponse, TokensResponse } from '../models'; export interface DeleteTokenByIdRequest { environmentId: string; tokenId: string; } export interface GetTokensRequest { environmentId: string; } export interface PostTokenRequest { environmentId: string; postTokenFields: PostTokenFields; } /** * */ export declare class TokensApi extends runtime.BaseAPI { /** * Permanently removes the specified API token. * Delete an API token by ID */ deleteTokenByIdRaw(requestParameters: DeleteTokenByIdRequest, initOverrides?: RequestInit): Promise>; /** * Permanently removes the specified API token. * Delete an API token by ID */ deleteTokenById(requestParameters: DeleteTokenByIdRequest, initOverrides?: RequestInit): Promise; /** * Returns metadata about the API token used to authenticate this request, including its scopes, creation date, and associated environment. * Introspect the current API token */ getTokenMeRaw(initOverrides?: RequestInit): Promise>; /** * Returns metadata about the API token used to authenticate this request, including its scopes, creation date, and associated environment. * Introspect the current API token */ getTokenMe(initOverrides?: RequestInit): Promise; /** * Returns the API tokens for the specified environment. * Get API tokens for the environment */ getTokensRaw(requestParameters: GetTokensRequest, initOverrides?: RequestInit): Promise>; /** * Returns the API tokens for the specified environment. * Get API tokens for the environment */ getTokens(requestParameters: GetTokensRequest, initOverrides?: RequestInit): Promise; /** * Creates a new API token for the specified environment. * Create an API token for the environment */ postTokenRaw(requestParameters: PostTokenRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new API token for the specified environment. * Create an API token for the environment */ postToken(requestParameters: PostTokenRequest, initOverrides?: RequestInit): Promise; }