/** * Shared types for License Verifier MCP Server */ export type LicenseStatus = 'active' | 'inactive' | 'expired' | 'revoked' | 'suspended' | 'deceased' | 'resigned' | 'unknown'; export interface Address { street?: string; city?: string; county?: string; state?: string; zip?: string; } export interface LicenseInfo { state: string; licenseNumber: string; licenseType: string; status: LicenseStatus; name: string; issueDate?: string; expirationDate?: string; address?: Address; board?: string; specialties?: string[]; certifications?: string[]; disciplinaryActions?: DisciplinaryAction[]; hasPublicRecord?: boolean; rawData?: Record; lastVerified?: string; source?: string; } export interface DisciplinaryAction { type: string; date?: string; description?: string; status?: string; documentUrl?: string; } export interface VerificationRequest { state: string; licenseNumber: string; licenseType?: string; name?: string; } export interface VerificationResult { found: boolean; license?: LicenseInfo; source: string; timestamp: string; cached: boolean; error?: string; } export interface SearchRequest { states?: string[]; licenseNumber?: string; name?: string; licenseType?: string; city?: string; } export interface SearchResult { results: VerificationResult[]; totalFound: number; statesSearched: string[]; timestamp: string; } export interface StateAdapter { state: string; name: string; url: string; supportsLicenseSearch: boolean; supportsNameSearch: boolean; supportsBulkSearch: boolean; verifyByLicenseNumber(licenseNumber: string, licenseType?: string): Promise; searchByName?(lastName: string, firstName?: string): Promise; } export type Profession = 'physician' | 'nurse' | 'pharmacist' | 'dentist' | 'attorney' | 'physical_therapist' | 'occupational_therapist' | 'chiropractor' | 'psychologist' | 'social_worker' | 'real_estate' | 'accountant' | 'engineer' | 'architect' | 'contractor' | 'other'; export declare const PROFESSION_CODES: Record; export declare const US_STATES: Record; export declare class LicenseVerificationError extends Error { code: string; state?: string | undefined; details?: Record | undefined; constructor(message: string, code: string, state?: string | undefined, details?: Record | undefined); } export declare const ERROR_CODES: { readonly STATE_NOT_SUPPORTED: "STATE_NOT_SUPPORTED"; readonly LICENSE_NOT_FOUND: "LICENSE_NOT_FOUND"; readonly RATE_LIMITED: "RATE_LIMITED"; readonly NETWORK_ERROR: "NETWORK_ERROR"; readonly PARSE_ERROR: "PARSE_ERROR"; readonly API_KEY_REQUIRED: "API_KEY_REQUIRED"; readonly API_KEY_INVALID: "API_KEY_INVALID"; }; //# sourceMappingURL=types.d.ts.map