UNPKG

breathe-api

Version:

Model Context Protocol server for Breathe HR APIs with Swagger/OpenAPI support - also works with custom APIs

34 lines 1.12 kB
import { EnvironmentConfig, EnvironmentName } from '../types/resources.js'; export interface CustomApiConfig { name: string; environments: { production?: CustomEnvironmentConfig; staging?: CustomEnvironmentConfig; development?: CustomEnvironmentConfig; sandbox?: CustomEnvironmentConfig; }; defaultEnvironment?: EnvironmentName; } export interface CustomEnvironmentConfig { displayName?: string; description?: string; baseUrl: string; swaggerUrl?: string; auth?: { type: 'none' | 'basic' | 'bearer' | 'api-key'; username?: string; password?: string; token?: string; apiKey?: string; apiKeyHeader?: string; }; endpoints?: Record<string, { path: string; method?: string; description?: string; }>; headers?: Record<string, string>; } export declare function loadCustomConfig(): CustomApiConfig | null; export declare function customConfigToEnvironments(config: CustomApiConfig): Record<EnvironmentName, EnvironmentConfig>; //# sourceMappingURL=custom-config.d.ts.map