@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
16 lines (15 loc) • 600 B
TypeScript
/**
* Types for the safe-fetch utility (SSRF-hardened binary downloads).
*
* Runtime helper lives in `src/lib/utils/safeFetch.ts`.
*/
export type SafeDownloadOptions = {
/** Hard cap on response size in bytes. Pass MAX_VIDEO_BYTES/MAX_AUDIO_BYTES/MAX_IMAGE_BYTES from sizeGuard. */
maxBytes: number;
/** Human-readable identifier used in error messages (e.g. "HeyGen video"). */
label: string;
/** Optional abort signal for caller-driven cancellation. */
signal?: AbortSignal;
/** Optional per-call request timeout (ms). Default: 60_000. */
timeoutMs?: number;
};