@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
39 lines (38 loc) • 1.58 kB
TypeScript
/**
* 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);
}