@revmax/agent-sdk
Version:
Official Node.js SDK for RevMax - billing, customer management, and usage tracking
30 lines (29 loc) • 797 B
TypeScript
import { AuthMethod } from '../types';
/**
* API Key authentication method
*/
export declare class ApiKeyAuth implements AuthMethod {
private readonly apiKey;
private verified;
/**
* Create a new API Key authentication method
* @param apiKey - API Key for authentication
* @throws RevMaxAuthenticationError if the API key is invalid
*/
constructor(apiKey: string);
/**
* Get headers for authentication
* @returns Headers for API requests
*/
getHeaders(): Record<string, string>;
/**
* Set verification status
* @param status - Verification status
*/
setVerified(status: boolean): void;
/**
* Check if the API key has been verified
* @returns Verification status
*/
isVerified(): boolean;
}