@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
25 lines (22 loc) • 482 B
text/typescript
// API Key database item type (independent from schema)
export interface ApiKeyItem {
accessedAt: Date;
createdAt: Date;
enabled?: boolean | null;
expiresAt?: Date | null;
id: number;
key: string;
lastUsedAt?: Date | null;
name: string;
updatedAt: Date;
userId: string;
}
export interface CreateApiKeyParams {
expiresAt?: Date | null;
name: string;
}
export interface UpdateApiKeyParams {
enabled?: boolean;
expiresAt?: Date | null;
name?: string;
}