/** * Federal Preemption Risk & Litigation Tracker - Type Definitions * * 🦉 The Compliance Sentinel AI Agents Trust * * @author Jason Pellerin AI Solutionist * @see https://jasonpellerin.com */ import { z } from 'zod'; export declare const InputSchema: z.ZodObject<{ searchMode: z.ZodDefault>; targetStates: z.ZodDefault, "many">>; keywords: z.ZodDefault; dateRangeStart: z.ZodOptional; dateRangeEnd: z.ZodOptional; courtTypes: z.ZodDefault, "many">>; includeProposedRules: z.ZodDefault; includeFinalRules: z.ZodDefault; includeExecutiveOrders: z.ZodDefault; riskScoreThreshold: z.ZodDefault; maxResults: z.ZodDefault; outputFormat: z.ZodDefault>; courtListenerApiToken: z.ZodOptional; webhookUrl: z.ZodOptional; proxyConfiguration: z.ZodOptional; apifyProxyGroups: z.ZodOptional>; proxyUrls: z.ZodOptional>; }, "strip", z.ZodTypeAny, { useApifyProxy?: boolean | undefined; apifyProxyGroups?: string[] | undefined; proxyUrls?: string[] | undefined; }, { useApifyProxy?: boolean | undefined; apifyProxyGroups?: string[] | undefined; proxyUrls?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { searchMode: "comprehensive" | "courtCases" | "executiveOrders" | "dojActions" | "federalRegister" | "stateConflicts" | "riskAssessment"; targetStates: ("CO" | "CA" | "CT" | "IL" | "TX" | "NY" | "VA" | "WA" | "ALL")[]; keywords: string; courtTypes: ("scotus" | "circuit" | "district" | "all")[]; includeProposedRules: boolean; includeFinalRules: boolean; includeExecutiveOrders: boolean; riskScoreThreshold: number; maxResults: number; outputFormat: "detailed" | "summary" | "agent_optimized" | "compliance_report"; dateRangeStart?: string | undefined; dateRangeEnd?: string | undefined; courtListenerApiToken?: string | undefined; webhookUrl?: string | undefined; proxyConfiguration?: { useApifyProxy?: boolean | undefined; apifyProxyGroups?: string[] | undefined; proxyUrls?: string[] | undefined; } | undefined; }, { searchMode?: "comprehensive" | "courtCases" | "executiveOrders" | "dojActions" | "federalRegister" | "stateConflicts" | "riskAssessment" | undefined; targetStates?: ("CO" | "CA" | "CT" | "IL" | "TX" | "NY" | "VA" | "WA" | "ALL")[] | undefined; keywords?: string | undefined; dateRangeStart?: string | undefined; dateRangeEnd?: string | undefined; courtTypes?: ("scotus" | "circuit" | "district" | "all")[] | undefined; includeProposedRules?: boolean | undefined; includeFinalRules?: boolean | undefined; includeExecutiveOrders?: boolean | undefined; riskScoreThreshold?: number | undefined; maxResults?: number | undefined; outputFormat?: "detailed" | "summary" | "agent_optimized" | "compliance_report" | undefined; courtListenerApiToken?: string | undefined; webhookUrl?: string | undefined; proxyConfiguration?: { useApifyProxy?: boolean | undefined; apifyProxyGroups?: string[] | undefined; proxyUrls?: string[] | undefined; } | undefined; }>; export type Input = z.infer; export interface StateRegulation { state: string; stateName: string; billNumber: string; title: string; effectiveDate: string; status: 'enacted' | 'proposed' | 'delayed' | 'amended'; keyProvisions: string[]; preemptionRiskFactors: string[]; federalConflictPoints: string[]; } export declare const STATE_AI_REGULATIONS: StateRegulation[]; export interface PreemptionEvent { id: string; eventType: PreemptionEventType; title: string; summary: string; source: DataSource; sourceUrl: string; sourceId?: string; datePublished: string; dateEffective?: string; dateDiscovered: string; federalAuthority: FederalAuthority; affectedStates: string[]; affectedProvisions: string[]; preemptionRisk: PreemptionRisk; complianceImpact: ComplianceImpact; ragChunks: RagChunk[]; citations: Citation[]; relatedEvents: string[]; rawData?: any; extractedAt: string; } export type PreemptionEventType = 'executive_order' | 'court_case' | 'court_opinion' | 'doj_action' | 'doj_guidance' | 'federal_rule_proposed' | 'federal_rule_final' | 'agency_guidance' | 'congressional_action' | 'preemption_challenge' | 'enforcement_action'; export type DataSource = 'federal_register' | 'courtlistener' | 'doj_press' | 'whitehouse' | 'regulations_gov' | 'congress_gov' | 'state_legislature'; export type FederalAuthority = 'executive_branch' | 'doj' | 'ftc' | 'eeoc' | 'sec' | 'cfpb' | 'hhs' | 'commerce' | 'federal_courts' | 'congress' | 'multiple'; export interface PreemptionRisk { score: number; level: 'low' | 'medium' | 'high' | 'critical'; basis: PreemptionBasis[]; timeline: RiskTimeline; confidence: number; reasoning: string; } export type PreemptionBasis = 'express_preemption' | 'field_preemption' | 'conflict_preemption' | 'commerce_clause' | 'supremacy_clause' | 'agency_exclusive' | 'federal_funding_threat'; export type RiskTimeline = 'immediate' | 'near_term' | 'medium_term' | 'long_term' | 'speculative'; export interface ComplianceImpact { severity: 'informational' | 'advisory' | 'actionable' | 'urgent'; affectedRequirements: string[]; recommendedActions: string[]; deadlines: ComplianceDeadline[]; costImpact?: CostImpact; } export interface ComplianceDeadline { description: string; date: string; source: string; isHard: boolean; } export interface CostImpact { estimatedRange: { low: number; high: number; }; basis: string; affectedOrganizations: string; } export interface CourtCase extends PreemptionEvent { eventType: 'court_case' | 'court_opinion'; caseNumber: string; caseName: string; court: string; courtCode: string; judges?: string[]; parties: { plaintiff: string; defendant: string; intervenors?: string[]; amici?: string[]; }; status: CaseStatus; keyHoldings?: string[]; proceduralHistory?: string[]; } export type CaseStatus = 'pending' | 'briefing' | 'oral_argument_scheduled' | 'submitted' | 'decided' | 'appealed' | 'remanded' | 'settled' | 'dismissed'; export interface ExecutiveOrder extends PreemptionEvent { eventType: 'executive_order'; eoNumber: string; president: string; federalRegisterCitation: string; revokes?: string[]; amends?: string[]; directedAgencies: string[]; implementationDeadlines: ComplianceDeadline[]; } export interface FederalRegisterDocument extends PreemptionEvent { eventType: 'federal_rule_proposed' | 'federal_rule_final' | 'agency_guidance'; documentNumber: string; documentType: 'RULE' | 'PRORULE' | 'NOTICE' | 'PRESDOC'; agencies: string[]; cfr?: string; rin?: string; commentPeriod?: { startDate: string; endDate: string; isOpen: boolean; }; effectiveDates?: string[]; } export interface StateConflict { id: string; stateRegulation: StateRegulation; federalEvent: PreemptionEvent; conflictType: ConflictType; conflictSeverity: 'low' | 'medium' | 'high' | 'critical'; analysis: ConflictAnalysis; strategicOptions: StrategicOption[]; } export type ConflictType = 'direct_conflict' | 'implicit_conflict' | 'coverage_overlap' | 'enforcement_conflict' | 'timing_conflict' | 'definitional_conflict'; export interface ConflictAnalysis { summary: string; federalPosition: string; statePosition: string; likelyOutcome: string; precedents: string[]; openQuestions: string[]; } export interface StrategicOption { strategy: string; description: string; pros: string[]; cons: string[]; estimatedCost: CostImpact; timeline: string; riskLevel: 'low' | 'medium' | 'high'; } export interface RagChunk { id: string; content: string; chunkType: 'summary' | 'holding' | 'rationale' | 'requirement' | 'deadline' | 'citation'; metadata: { source: string; date: string; relevanceScore: number; tokens?: number; }; embedding?: number[]; } export interface Citation { text: string; citation: string; type: 'statute' | 'regulation' | 'case' | 'executive_order' | 'guidance'; url?: string; verified: boolean; } export interface PreemptionReport { title: string; generatedAt: string; dateRange: { start: string; end: string; }; targetStates: string[]; executiveSummary: { totalEvents: number; criticalRisks: number; highRisks: number; activeConflicts: number; upcomingDeadlines: number; keyFindings: string[]; }; riskDashboard: { overallRiskLevel: 'low' | 'medium' | 'high' | 'critical'; byState: { state: string; riskScore: number; trend: 'increasing' | 'stable' | 'decreasing'; }[]; bySource: { source: FederalAuthority; count: number; avgRisk: number; }[]; }; events: PreemptionEvent[]; conflicts: StateConflict[]; complianceCalendar: ComplianceDeadline[]; recommendations: string[]; dataQuality: { sourcesQueried: number; successfulQueries: number; totalResults: number; deduplicatedResults: number; coverageScore: number; }; } export interface ExtractionResult { success: boolean; data: T[]; totalFound: number; extracted: number; errors: string[]; warnings: string[]; metrics: ExtractionMetrics; } export interface ExtractionMetrics { durationMs: number; requestCount: number; rateLimitHits: number; retries: number; deduplicatedCount: number; } export interface FederalRegisterApiResponse { count: number; total_pages: number; results: FederalRegisterResult[]; } export interface FederalRegisterResult { document_number: string; title: string; type: string; abstract: string; publication_date: string; effective_on?: string; agencies: { name: string; id: number; }[]; html_url: string; pdf_url: string; full_text_xml_url?: string; citation?: string; cfr_references?: { title: number; part: number; }[]; regulation_id_numbers?: string[]; executive_order_number?: string; presidential_document_type?: string; signing_date?: string; comments_close_on?: string; [key: string]: any; } export interface CourtListenerSearchResponse { count: number; next: string | null; previous: string | null; results: CourtListenerResult[]; } export interface CourtListenerResult { id: number; absolute_url: string; case_name: string; case_name_short?: string; court: string; court_id: string; date_filed: string; date_argued?: string; docket_number?: string; citation_count?: number; citations?: string[]; author_str?: string; snippet?: string; download_url?: string; [key: string]: any; } //# sourceMappingURL=types.d.ts.map