Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

32 lines
650 B
TypeScript

/**
* PDF Parsing Provider Type Definitions
*/
/**
* PDF Provider IDs
*/
export type PDFProviderId = 'unpdf' | 'mineru' | 'mineru-cloud';
/**
* PDF Provider Configuration
*/
export interface PDFProviderConfig {
id: PDFProviderId;
name: string;
requiresApiKey: boolean;
baseUrl?: string;
icon?: string;
features: string[]; // ['text', 'images', 'tables', 'formulas', 'layout-analysis', etc.]
}
/**
* PDF Parser Configuration for API calls
*/
export interface PDFParserConfig {
providerId: PDFProviderId;
apiKey?: string;
baseUrl?: string;
}
// Note: ParsedPdfContent is imported from @/lib/types/pdf to avoid duplication