import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class APIKey extends APIResource { /** * Get current user's pipeline API key */ retrieveAPIKey(params?: APIKeyRetrieveAPIKeyParams | null | undefined, options?: RequestOptions): APIPromise; /** * Rotate the current user's pipeline API key */ rotate(params?: APIKeyRotateParams | null | undefined, options?: RequestOptions): APIPromise; } /** * User API Key response model. */ export interface UserAPIKeyResponse { /** * The user's API key. */ api_key?: string | null; } export interface APIKeyRetrieveAPIKeyParams { 'Accept-Language'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export interface APIKeyRotateParams { 'Accept-Language'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace APIKey { export { type UserAPIKeyResponse as UserAPIKeyResponse, type APIKeyRetrieveAPIKeyParams as APIKeyRetrieveAPIKeyParams, type APIKeyRotateParams as APIKeyRotateParams, }; } //# sourceMappingURL=api-key.d.ts.map