WORKALRSGDJHX / src /types /custom.d.ts
Xaiph's picture
Upload 62 files
9de8f9d
raw
history blame contribute delete
No virus
688 Bytes
import { Express } from "express-serve-static-core";
import { AIService, Key } from "../key-management/index";
import { User } from "../proxy/auth/user-store";
declare global {
namespace Express {
interface Request {
key?: Key;
/** Denotes the format of the user's submitted request. */
inboundApi: AIService | "kobold";
/** Denotes the format of the request being proxied to the API. */
outboundApi: AIService;
user?: User;
isStreaming?: boolean;
startTime: number;
retryCount: number;
queueOutTime?: number;
onAborted?: () => void;
proceed: () => void;
heartbeatInterval?: NodeJS.Timeout;
}
}
}