export interface APIProvider { id: string; name: string; description: string; category: string; capabilities: string[]; keywords: string[]; pricing: APIPricing; auth_type: string; docs_url: string; base_url: string; endpoints: APIEndpoint[]; features: string[]; compliance: string[]; regions: string[]; agent_success_rate: number; avg_latency_ms: number; } export interface APIPricing { model: string; free_tier: boolean; minimum_purchase: number | null; [key: string]: string | number | boolean | null | undefined; } export interface APIEndpoint { name: string; method: string; path: string; params: string[]; } export interface SearchResult { provider: APIProvider; relevance_score: number; match_reasons: string[]; } export interface AgentCredits { agent_id: string; balance_usd: number; currency: string; created_at: string; updated_at: string; } export interface Purchase { id: string; agent_id: string; provider_id: string; amount_usd: number; credits_purchased: number; status: 'pending' | 'active' | 'exhausted' | 'refunded'; credentials?: APICredentials; created_at: string; } export interface APICredentials { type: string; api_key?: string; username?: string; password?: string; token?: string; expires_at?: string; } export interface UsageRecord { purchase_id: string; provider_id: string; units_used: number; units_remaining: number; cost_incurred_usd: number; last_used_at: string; } /** * Enhanced API details response * Supports both full and compact (minified) modes */ export interface APIDetailsResponse { id: string; type: 'direct_call' | 'open' | 'registry'; name?: string; description?: string; category?: string; auth_type?: string; base_url?: string; docs_url?: string; pricing?: APIPricing | string; direct_call?: boolean; free?: boolean; note?: string; desc?: string; auth?: string; url?: string; actions?: Record; } //# sourceMappingURL=types.d.ts.map