UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

39 lines (38 loc) 1.58 kB
/** * PPT Generation Error Class & Codes * * Defined in the feature directory (not src/lib/types/) because PPTError is a * runtime class extending NeuroLinkError. Putting runtime classes in * src/lib/types/ creates a circular dependency: NeuroLinkError lives in * utils/errorHandling.ts which imports from the types barrel, which would * then re-export ppt.ts which extends NeuroLinkError → TDZ at runtime. * * Follows the same pattern as VideoError in vertexVideoHandler.ts. */ import { NeuroLinkError } from "../../utils/errorHandling.js"; /** * PPT generation error codes */ export declare const PPT_ERROR_CODES: { /** Content planning AI call failed */ readonly PLANNING_FAILED: "PPT_PLANNING_FAILED"; /** AI returned invalid/unparseable response */ readonly INVALID_AI_RESPONSE: "PPT_INVALID_AI_RESPONSE"; /** Image generation for slide failed */ readonly IMAGE_GENERATION_FAILED: "PPT_IMAGE_GENERATION_FAILED"; /** PPTX file assembly failed */ readonly ASSEMBLY_FAILED: "PPT_ASSEMBLY_FAILED"; /** File system write failed */ readonly FILE_WRITE_FAILED: "PPT_FILE_WRITE_FAILED"; /** Invalid input options */ readonly INVALID_INPUT: "PPT_INVALID_INPUT"; /** Generation timeout */ readonly TIMEOUT: "PPT_TIMEOUT"; }; /** * PPT generation error class. * Extends NeuroLinkError for consistent error handling (follows VideoError pattern). */ export declare class PPTError extends NeuroLinkError { constructor(message: string, code: string, context?: Record<string, unknown>, originalError?: Error); }