UNPKG

@unified-llm/core

Version:
28 lines (27 loc) 1.14 kB
import { StoredLLMClient, LLMClientConfig } from './schema'; export declare class ClientRepository { private getDb; private isDisabled; /** Save or update LLM client configuration. */ save(config: LLMClientConfig): Promise<StoredLLMClient>; /** Retrieve by ID */ findById(id: string): Promise<StoredLLMClient | null>; /** 名前検索 */ findByName(name: string): Promise<StoredLLMClient[]>; /** プロバイダー検索 */ findByProvider(provider: 'openai' | 'anthropic' | 'google' | 'deepseek'): Promise<StoredLLMClient[]>; /** タグ検索 */ findByTags(tags: string[]): Promise<StoredLLMClient[]>; /** 一覧取得(非アクティブ含むか) */ findAll(includeInactive?: boolean): Promise<StoredLLMClient[]>; /** 論理削除 */ delete(id: string): Promise<boolean>; /** 物理削除 */ hardDelete(id: string): Promise<boolean>; static toConfig(stored: StoredLLMClient): LLMClientConfig; static validateConfig(config: LLMClientConfig): { valid: boolean; errors: string[]; }; } export declare const clientRepository: ClientRepository;