@subscribe.dev/replicate-frontend-proxy
Version:
AWS Lambda function that serves as a secure proxy for the Replicate API
5 lines (4 loc) • 350 B
TypeScript
export declare const withTimeout: <T>(promise: Promise<T>, timeoutMs: number, timeoutMessage?: string) => Promise<T>;
export declare const sanitizeForLogs: (data: any, maxLength?: number) => string;
export declare const generateCorrelationId: () => string;
export declare const isValidJsonSize: (jsonString: string, maxSizeBytes: number) => boolean;