breathe-api
Version:
Model Context Protocol server for Breathe HR APIs with Swagger/OpenAPI support - also works with custom APIs
19 lines • 865 B
TypeScript
import PQueue from 'p-queue';
export declare function getToolRateLimiter(toolName: string): PQueue;
export declare function isToolRateLimited(toolName: string): boolean;
export declare function getToolRateLimitStatus(toolName: string): {
pending: number;
queued: number;
concurrency: number;
intervalCap: number;
isLimited: boolean;
};
export declare function getAllRateLimitStatus(): Record<string, ReturnType<typeof getToolRateLimitStatus>>;
export declare function resetToolRateLimiter(toolName: string): void;
export declare function resetAllRateLimiters(): void;
export declare class RateLimitError extends Error {
toolName: string;
limitType: 'concurrency' | 'interval' | 'timeout';
constructor(toolName: string, limitType: 'concurrency' | 'interval' | 'timeout', message?: string);
}
//# sourceMappingURL=rate-limiter.d.ts.map