UNPKG

okta-mcp-server

Version:

Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching

29 lines 978 B
export interface ErrorScenario { code: number; message: string; errorCode?: string; errorSummary?: string; errorLink?: string; errorId?: string; } export interface ErrorSimulatorConfig { enabled: boolean; errorRate: number; scenarios?: ErrorScenario[]; specificErrors?: Map<string, ErrorScenario>; } export declare class ErrorSimulator { private config; private defaultScenarios; constructor(config?: ErrorSimulatorConfig); shouldError(path?: string): boolean; generateError(path?: string): ErrorScenario | null; setPathError(path: string, scenario: ErrorScenario): void; clearPathError(path: string): void; simulateAuthError(): ErrorScenario; simulateValidationError(field: string, value: any): ErrorScenario; simulateConflictError(resource: string): ErrorScenario; private generateErrorId; formatErrorResponse(scenario: ErrorScenario): any; } //# sourceMappingURL=error-simulator.d.ts.map