/** * Zotero MCP 类型定义 */ export interface ZoteroConfig { apiKey: string; userId: string; groupId?: string; } export interface TranslationServerConfig { url: string; } export interface ZoteroCreator { creatorType: string; firstName?: string; lastName?: string; name?: string; } export interface ZoteroTag { tag: string; type?: number; } export interface ZoteroItemData { key?: string; version?: number; itemType: string; title?: string; creators?: ZoteroCreator[]; abstractNote?: string; publicationTitle?: string; volume?: string; issue?: string; pages?: string; date?: string; DOI?: string; ISSN?: string; ISBN?: string; url?: string; accessDate?: string; language?: string; tags?: ZoteroTag[]; collections?: string[]; relations?: Record; deleted?: number; parentItem?: string; linkMode?: string; contentType?: string; filename?: string; note?: string; [key: string]: unknown; } export interface ZoteroItem { key: string; version: number; library: { type: string; id: number; name?: string; }; links: { self: { href: string; type: string; }; alternate?: { href: string; type: string; }; }; data: ZoteroItemData; meta?: { creatorSummary?: string; parsedDate?: string; numChildren?: number; }; } export interface ZoteroCollection { key: string; version: number; data: { key: string; name: string; parentCollection: string | false; }; } export interface ZoteroResponseHeaders { totalResults?: number; lastModifiedVersion?: number; backoff?: number; retryAfter?: number; } export interface ZoteroWriteResponse { success: Record; unchanged: Record; failed: Record; } export interface SearchParams { query?: string; itemType?: string; tag?: string; collectionKey?: string; limit?: number; start?: number; sort?: string; direction?: 'asc' | 'desc'; qmode?: 'titleCreatorYear' | 'everything'; includeTrashed?: boolean; includeChildren?: boolean; } export interface ZoteroSavedSearch { key: string; version: number; library: { type: string; id: number; name?: string; }; data: { key: string; name: string; conditions: Array<{ condition: string; operator: string; value: string; }>; }; } export interface CreateItemParams { itemType: string; title: string; creators?: ZoteroCreator[]; date?: string; DOI?: string; url?: string; abstractNote?: string; publicationTitle?: string; volume?: string; issue?: string; pages?: string; tags?: string[]; collections?: string[]; } export interface CreateByIdentifierParams { identifier: string; tags?: string[]; collections?: string[]; } export interface ExportParams { itemKeys: string[]; format: 'bibtex' | 'ris' | 'csljson' | 'bibliography' | 'coins' | 'refer' | 'tei'; style?: string; } export interface ItemSummary { key: string; title: string; itemType: string; creators: string; date: string; } export interface CollectionSummary { key: string; name: string; parentCollection: string | false; } export interface TagSummary { tag: string; type: number; } //# sourceMappingURL=types.d.ts.map