@claritylabs/cl-sdk 3.1.26 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LogFn, M as ModelTaskKind, a as ModelBudgetResolution, b as ModelCallTrace, G as GenerateObject, T as TokenUsage, S as SourceSpanLocation, c as SourceSpan, D as DocumentSourceNode, d as SourceKind, e as SourceSpanUnit, f as SourceSpanTableLocation, g as SourceChunk, h as SourceSpanBBox, U as UnifiedQualityReport, B as BaseQualityIssue, Q as QualityGateStatus, I as InsuranceDocument, P as PdfInput, i as DocumentChunk, j as PolicyOperationalProfile, k as PerformanceReport, l as GenerateText, C as ConvertPdfToImagesFn, m as QualityGateMode, n as ModelCapabilities, o as ModelBudgetConstraint, A as AgentContext, p as DocumentStore, q as MemoryStore, r as Platform } from './index-B2T7Jvir.mjs';
2
- export { s as AcroFormMapping, t as AcroFormMappingSchema, u as AnswerParsingResult, v as AnswerParsingResultSchema, w as ApplicationClassifyResult, x as ApplicationClassifyResultSchema, y as ApplicationContextProposal, z as ApplicationContextProposalSchema, E as ApplicationEmailReviewSchema, F as ApplicationField, H as ApplicationFieldSchema, J as ApplicationListFilters, K as ApplicationNextQuestions, N as ApplicationPacket, O as ApplicationPacketAnswer, R as ApplicationPacketAnswerSchema, V as ApplicationPacketSchema, W as ApplicationPipelineConfig, X as ApplicationQualityArtifactSchema, Y as ApplicationQualityIssueSchema, Z as ApplicationQualityReportSchema, _ as ApplicationQualityRoundSchema, $ as ApplicationQuestionCondition, a0 as ApplicationQuestionConditionSchema, a1 as ApplicationQuestionGraph, a2 as ApplicationQuestionGraphSchema, a3 as ApplicationQuestionNode, a4 as ApplicationQuestionNodeSchema, a5 as ApplicationRepeat, a6 as ApplicationRepeatSchema, a7 as ApplicationState, a8 as ApplicationStateSchema, a9 as ApplicationStore, aa as ApplicationTemplate, ab as ApplicationTemplateListFilters, ac as ApplicationTemplateSchema, ad as ApplicationTemplateStore, ae as AutoFillMatch, af as AutoFillMatchSchema, ag as AutoFillResult, ah as AutoFillResultSchema, ai as AuxiliaryFact, aj as AuxiliaryFactSchema, ak as BackfillProvider, al as BuildApplicationPacketInput, am as BuildApplicationPacketResult, an as ChunkFilter, ao as CommunicationIntent, ap as CommunicationIntentSchema, aq as ContextProposalResult, ar as ConversationTurn, as as CoveredReason, at as CoveredReasonSchema, au as CreateApplicationRunInput, av as Definition, aw as DefinitionSchema, ax as DocumentAgentGuidance, ay as DocumentAgentGuidanceSchema, az as DocumentFilters, aA as DocumentMetadata, aB as DocumentMetadataSchema, aC as DocumentNode, aD as DocumentNodeSchema, aE as DocumentPageMapEntry, aF as DocumentPageMapEntrySchema, aG as DocumentSourceNodeKind, aH as DocumentSourceNodeKindSchema, aI as DocumentSourceNodeSchema, aJ as DocumentTableOfContentsEntry, aK as DocumentTableOfContentsEntrySchema, aL as EmbedText, aM as FieldExtractionResult, aN as FieldExtractionResultSchema, aO as FieldType, aP as FieldTypeSchema, aQ as FlatPdfPlacement, aR as FlatPdfPlacementSchema, aS as InsuranceDocumentSchema, aT as LookupFill, aU as LookupFillResult, aV as LookupFillResultSchema, aW as LookupFillSchema, aX as LookupRequest, aY as LookupRequestSchema, aZ as ModelCallReport, a_ as OperationalCoverageLine, a$ as OperationalCoverageLineSchema, b0 as OperationalCoverageTerm, b1 as OperationalCoverageTermSchema, b2 as OperationalEndorsementSupport, b3 as OperationalEndorsementSupportSchema, b4 as OperationalParty, b5 as OperationalPartySchema, b6 as PLATFORM_CONFIGS, b7 as ParsedAnswer, b8 as ParsedAnswerSchema, b9 as PlatformConfig, ba as PlatformSchema, bb as PolicyDocument, bc as PolicyDocumentSchema, bd as PolicyOperationalProfileSchema, be as PremiumLine, bf as PremiumLineSchema, bg as PriorAnswer, bh as ProcessApplicationInput, bi as ProcessApplicationResult, bj as ProcessReplyInput, bk as ProcessReplyResult, bl as QuestionBatchResult, bm as QuestionBatchResultSchema, bn as QuoteDocument, bo as QuoteDocumentSchema, bp as ReplyIntent, bq as ReplyIntentSchema, br as ResolveModelBudgetParams, bs as Section, bt as SectionSchema, bu as SourceBackedValue, bv as SourceBackedValueSchema, bw as SourceChunkSchema, bx as SourceKindSchema, by as SourceSpanBBoxSchema, bz as SourceSpanKind, bA as SourceSpanKindSchema, bB as SourceSpanLocationSchema, bC as SourceSpanRef, bD as SourceSpanRefSchema, bE as SourceSpanSchema, bF as SourceSpanTableLocationSchema, bG as SourceSpanUnitSchema, bH as Subjectivity, bI as SubjectivitySchema, bJ as Subsection, bK as SubsectionSchema, bL as UnderwritingCondition, bM as UnderwritingConditionSchema, bN as applyApplicationAnswers, bO as buildApplicationPacket, bP as buildQuestionGraphFromFields, bQ as createApplicationPipeline, bR as createApplicationRun, bS as extractQuestionGraphFromFields, bT as flattenQuestionGraph, bU as getActiveApplicationFields, bV as getNextApplicationQuestions, bW as normalizeApplicationQuestionGraph, bX as planNextApplicationQuestions, bY as proposeContextWrites, bZ as resolveModelBudget, b_ as validateApplicationPacket } from './index-B2T7Jvir.mjs';
1
+ import { L as LogFn, M as ModelTaskKind, a as ModelBudgetResolution, b as ModelCallTrace, G as GenerateObject, T as TokenUsage, S as SourceSpanLocation, c as SourceSpan, D as DocumentSourceNode, d as SourceKind, e as SourceSpanUnit, f as SourceSpanTableLocation, g as SourceChunk, h as SourceSpanBBox, U as UnifiedQualityReport, B as BaseQualityIssue, Q as QualityGateStatus, P as PdfInput, I as InsuranceDocument, i as DocumentChunk, j as PolicyOperationalProfile, k as PerformanceReport, l as QualityGateMode, m as ModelCapabilities, n as ModelBudgetConstraint, A as AgentContext, o as GenerateText, p as DocumentStore, q as MemoryStore, r as Platform } from './index-BGyy2VS6.mjs';
2
+ export { s as AcroFormMapping, t as AcroFormMappingSchema, u as AnswerParsingResult, v as AnswerParsingResultSchema, w as ApplicationClassifyResult, x as ApplicationClassifyResultSchema, y as ApplicationContextProposal, z as ApplicationContextProposalSchema, C as ApplicationEmailReviewSchema, E as ApplicationField, F as ApplicationFieldSchema, H as ApplicationListFilters, J as ApplicationNextQuestions, K as ApplicationPacket, N as ApplicationPacketAnswer, O as ApplicationPacketAnswerSchema, R as ApplicationPacketSchema, V as ApplicationPipelineConfig, W as ApplicationQualityArtifactSchema, X as ApplicationQualityIssueSchema, Y as ApplicationQualityReportSchema, Z as ApplicationQualityRoundSchema, _ as ApplicationQuestionCondition, $ as ApplicationQuestionConditionSchema, a0 as ApplicationQuestionGraph, a1 as ApplicationQuestionGraphSchema, a2 as ApplicationQuestionNode, a3 as ApplicationQuestionNodeSchema, a4 as ApplicationRepeat, a5 as ApplicationRepeatSchema, a6 as ApplicationState, a7 as ApplicationStateSchema, a8 as ApplicationStore, a9 as ApplicationTemplate, aa as ApplicationTemplateListFilters, ab as ApplicationTemplateSchema, ac as ApplicationTemplateStore, ad as AutoFillMatch, ae as AutoFillMatchSchema, af as AutoFillResult, ag as AutoFillResultSchema, ah as AuxiliaryFact, ai as AuxiliaryFactSchema, aj as BackfillProvider, ak as BuildApplicationPacketInput, al as BuildApplicationPacketResult, am as ChunkFilter, an as CommunicationIntent, ao as CommunicationIntentSchema, ap as ContextProposalResult, aq as ConversationTurn, ar as ConvertPdfToImagesFn, as as CoveredReason, at as CoveredReasonSchema, au as CreateApplicationRunInput, av as Definition, aw as DefinitionSchema, ax as DocumentAgentGuidance, ay as DocumentAgentGuidanceSchema, az as DocumentFilters, aA as DocumentMetadata, aB as DocumentMetadataSchema, aC as DocumentNode, aD as DocumentNodeSchema, aE as DocumentPageMapEntry, aF as DocumentPageMapEntrySchema, aG as DocumentSourceNodeKind, aH as DocumentSourceNodeKindSchema, aI as DocumentSourceNodeSchema, aJ as DocumentTableOfContentsEntry, aK as DocumentTableOfContentsEntrySchema, aL as EmbedText, aM as FieldExtractionResult, aN as FieldExtractionResultSchema, aO as FieldType, aP as FieldTypeSchema, aQ as FlatPdfPlacement, aR as FlatPdfPlacementSchema, aS as InsuranceDocumentSchema, aT as LookupFill, aU as LookupFillResult, aV as LookupFillResultSchema, aW as LookupFillSchema, aX as LookupRequest, aY as LookupRequestSchema, aZ as ModelCallReport, a_ as OperationalCoverageLine, a$ as OperationalCoverageLineSchema, b0 as OperationalCoverageTerm, b1 as OperationalCoverageTermSchema, b2 as OperationalEndorsementSupport, b3 as OperationalEndorsementSupportSchema, b4 as OperationalParty, b5 as OperationalPartySchema, b6 as PLATFORM_CONFIGS, b7 as ParsedAnswer, b8 as ParsedAnswerSchema, b9 as PlatformConfig, ba as PlatformSchema, bb as PolicyDocument, bc as PolicyDocumentSchema, bd as PolicyOperationalProfileSchema, be as PremiumLine, bf as PremiumLineSchema, bg as PriorAnswer, bh as ProcessApplicationInput, bi as ProcessApplicationResult, bj as ProcessReplyInput, bk as ProcessReplyResult, bl as QuestionBatchResult, bm as QuestionBatchResultSchema, bn as QuoteDocument, bo as QuoteDocumentSchema, bp as ReplyIntent, bq as ReplyIntentSchema, br as ResolveModelBudgetParams, bs as Section, bt as SectionSchema, bu as SourceBackedValue, bv as SourceBackedValueSchema, bw as SourceChunkSchema, bx as SourceKindSchema, by as SourceSpanBBoxSchema, bz as SourceSpanKind, bA as SourceSpanKindSchema, bB as SourceSpanLocationSchema, bC as SourceSpanRef, bD as SourceSpanRefSchema, bE as SourceSpanSchema, bF as SourceSpanTableLocationSchema, bG as SourceSpanUnitSchema, bH as Subjectivity, bI as SubjectivitySchema, bJ as Subsection, bK as SubsectionSchema, bL as UnderwritingCondition, bM as UnderwritingConditionSchema, bN as applyApplicationAnswers, bO as buildApplicationPacket, bP as buildQuestionGraphFromFields, bQ as createApplicationPipeline, bR as createApplicationRun, bS as extractQuestionGraphFromFields, bT as flattenQuestionGraph, bU as getActiveApplicationFields, bV as getNextApplicationQuestions, bW as normalizeApplicationQuestionGraph, bX as planNextApplicationQuestions, bY as proposeContextWrites, bZ as resolveModelBudget, b_ as validateApplicationPacket } from './index-BGyy2VS6.mjs';
3
3
  import * as zod from 'zod';
4
4
  import { ZodTypeAny, z, ZodSchema } from 'zod';
5
5
  import { PDFDocument } from 'pdf-lib';
@@ -8523,157 +8523,6 @@ declare function getDoclingPageRangeText(normalized: NormalizedDoclingDocument,
8523
8523
  declare function buildDoclingProviderOptions(normalized: NormalizedDoclingDocument, existingOptions?: Record<string, unknown>): Record<string, unknown>;
8524
8524
  declare function mergeSourceSpans(spans: SourceSpan[]): SourceSpan[];
8525
8525
 
8526
- declare const ClassifyResultSchema: z.ZodObject<{
8527
- documentType: z.ZodEnum<["policy", "quote"]>;
8528
- policyTypes: z.ZodArray<z.ZodEnum<["general_liability", "commercial_property", "commercial_auto", "non_owned_auto", "workers_comp", "umbrella", "excess_liability", "professional_liability", "cyber", "epli", "directors_officers", "fiduciary_liability", "crime_fidelity", "inland_marine", "builders_risk", "environmental", "ocean_marine", "surety", "product_liability", "bop", "management_liability_package", "property", "homeowners_ho3", "homeowners_ho5", "renters_ho4", "condo_ho6", "dwelling_fire", "mobile_home", "personal_auto", "personal_umbrella", "flood_nfip", "flood_private", "earthquake", "personal_inland_marine", "watercraft", "recreational_vehicle", "farm_ranch", "pet", "travel", "identity_theft", "title", "other"]>, "many">;
8529
- confidence: z.ZodNumber;
8530
- }, "strip", z.ZodTypeAny, {
8531
- policyTypes: ("general_liability" | "commercial_property" | "commercial_auto" | "non_owned_auto" | "workers_comp" | "umbrella" | "excess_liability" | "professional_liability" | "cyber" | "epli" | "directors_officers" | "fiduciary_liability" | "crime_fidelity" | "inland_marine" | "builders_risk" | "environmental" | "ocean_marine" | "surety" | "product_liability" | "bop" | "management_liability_package" | "property" | "homeowners_ho3" | "homeowners_ho5" | "renters_ho4" | "condo_ho6" | "dwelling_fire" | "mobile_home" | "personal_auto" | "personal_umbrella" | "flood_nfip" | "flood_private" | "earthquake" | "personal_inland_marine" | "watercraft" | "recreational_vehicle" | "farm_ranch" | "pet" | "travel" | "identity_theft" | "title" | "other")[];
8532
- confidence: number;
8533
- documentType: "policy" | "quote";
8534
- }, {
8535
- policyTypes: ("general_liability" | "commercial_property" | "commercial_auto" | "non_owned_auto" | "workers_comp" | "umbrella" | "excess_liability" | "professional_liability" | "cyber" | "epli" | "directors_officers" | "fiduciary_liability" | "crime_fidelity" | "inland_marine" | "builders_risk" | "environmental" | "ocean_marine" | "surety" | "product_liability" | "bop" | "management_liability_package" | "property" | "homeowners_ho3" | "homeowners_ho5" | "renters_ho4" | "condo_ho6" | "dwelling_fire" | "mobile_home" | "personal_auto" | "personal_umbrella" | "flood_nfip" | "flood_private" | "earthquake" | "personal_inland_marine" | "watercraft" | "recreational_vehicle" | "farm_ranch" | "pet" | "travel" | "identity_theft" | "title" | "other")[];
8536
- confidence: number;
8537
- documentType: "policy" | "quote";
8538
- }>;
8539
- type ClassifyResult = z.infer<typeof ClassifyResultSchema>;
8540
-
8541
- declare const ExtractionPlanSchema: z.ZodObject<{
8542
- tasks: z.ZodArray<z.ZodObject<{
8543
- extractorName: z.ZodString;
8544
- startPage: z.ZodNumber;
8545
- endPage: z.ZodNumber;
8546
- description: z.ZodString;
8547
- }, "strip", z.ZodTypeAny, {
8548
- description: string;
8549
- startPage: number;
8550
- endPage: number;
8551
- extractorName: string;
8552
- }, {
8553
- description: string;
8554
- startPage: number;
8555
- endPage: number;
8556
- extractorName: string;
8557
- }>, "many">;
8558
- pageMap: z.ZodOptional<z.ZodArray<z.ZodObject<{
8559
- section: z.ZodString;
8560
- pages: z.ZodString;
8561
- }, "strip", z.ZodTypeAny, {
8562
- section: string;
8563
- pages: string;
8564
- }, {
8565
- section: string;
8566
- pages: string;
8567
- }>, "many">>;
8568
- }, "strip", z.ZodTypeAny, {
8569
- tasks: {
8570
- description: string;
8571
- startPage: number;
8572
- endPage: number;
8573
- extractorName: string;
8574
- }[];
8575
- pageMap?: {
8576
- section: string;
8577
- pages: string;
8578
- }[] | undefined;
8579
- }, {
8580
- tasks: {
8581
- description: string;
8582
- startPage: number;
8583
- endPage: number;
8584
- extractorName: string;
8585
- }[];
8586
- pageMap?: {
8587
- section: string;
8588
- pages: string;
8589
- }[] | undefined;
8590
- }>;
8591
- type ExtractionPlan = z.infer<typeof ExtractionPlanSchema>;
8592
-
8593
- declare const FormInventorySchema: z.ZodObject<{
8594
- forms: z.ZodArray<z.ZodObject<{
8595
- editionDate: z.ZodOptional<z.ZodString>;
8596
- title: z.ZodOptional<z.ZodString>;
8597
- formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
8598
- documentNodeId: z.ZodOptional<z.ZodString>;
8599
- sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8600
- sourceTextHash: z.ZodOptional<z.ZodString>;
8601
- } & {
8602
- formNumber: z.ZodString;
8603
- pageStart: z.ZodOptional<z.ZodNumber>;
8604
- pageEnd: z.ZodOptional<z.ZodNumber>;
8605
- }, "strip", z.ZodTypeAny, {
8606
- formNumber: string;
8607
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8608
- title?: string | undefined;
8609
- sourceSpanIds?: string[] | undefined;
8610
- documentNodeId?: string | undefined;
8611
- sourceTextHash?: string | undefined;
8612
- pageStart?: number | undefined;
8613
- pageEnd?: number | undefined;
8614
- editionDate?: string | undefined;
8615
- }, {
8616
- formNumber: string;
8617
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8618
- title?: string | undefined;
8619
- sourceSpanIds?: string[] | undefined;
8620
- documentNodeId?: string | undefined;
8621
- sourceTextHash?: string | undefined;
8622
- pageStart?: number | undefined;
8623
- pageEnd?: number | undefined;
8624
- editionDate?: string | undefined;
8625
- }>, "many">;
8626
- }, "strip", z.ZodTypeAny, {
8627
- forms: {
8628
- formNumber: string;
8629
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8630
- title?: string | undefined;
8631
- sourceSpanIds?: string[] | undefined;
8632
- documentNodeId?: string | undefined;
8633
- sourceTextHash?: string | undefined;
8634
- pageStart?: number | undefined;
8635
- pageEnd?: number | undefined;
8636
- editionDate?: string | undefined;
8637
- }[];
8638
- }, {
8639
- forms: {
8640
- formNumber: string;
8641
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8642
- title?: string | undefined;
8643
- sourceSpanIds?: string[] | undefined;
8644
- documentNodeId?: string | undefined;
8645
- sourceTextHash?: string | undefined;
8646
- pageStart?: number | undefined;
8647
- pageEnd?: number | undefined;
8648
- editionDate?: string | undefined;
8649
- }[];
8650
- }>;
8651
- type FormInventoryResult = z.infer<typeof FormInventorySchema>;
8652
-
8653
- declare const PageAssignmentSchema: z.ZodObject<{
8654
- localPageNumber: z.ZodNumber;
8655
- extractorNames: z.ZodArray<z.ZodEnum<["carrier_info", "named_insured", "coverage_limits", "covered_reasons", "definitions", "endorsements", "exclusions", "conditions", "premium_breakdown", "declarations", "loss_history", "sections", "supplementary"]>, "many">;
8656
- pageRole: z.ZodOptional<z.ZodEnum<["declarations_schedule", "endorsement_schedule", "policy_form", "endorsement_form", "condition_exclusion_form", "supplementary", "other"]>>;
8657
- hasScheduleValues: z.ZodOptional<z.ZodBoolean>;
8658
- confidence: z.ZodOptional<z.ZodNumber>;
8659
- notes: z.ZodOptional<z.ZodString>;
8660
- }, "strip", z.ZodTypeAny, {
8661
- extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "definitions" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "covered_reasons" | "premium_breakdown")[];
8662
- localPageNumber: number;
8663
- confidence?: number | undefined;
8664
- pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
8665
- hasScheduleValues?: boolean | undefined;
8666
- notes?: string | undefined;
8667
- }, {
8668
- extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "definitions" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "covered_reasons" | "premium_breakdown")[];
8669
- localPageNumber: number;
8670
- confidence?: number | undefined;
8671
- pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
8672
- hasScheduleValues?: boolean | undefined;
8673
- notes?: string | undefined;
8674
- }>;
8675
- type PageAssignment = z.infer<typeof PageAssignmentSchema>;
8676
-
8677
8526
  interface FormInventoryEntry {
8678
8527
  formNumber: string;
8679
8528
  title?: string;
@@ -8706,33 +8555,8 @@ interface ExtractionReviewReport extends UnifiedQualityReport<QualityIssue> {
8706
8555
  qualityGateStatus: QualityGateStatus;
8707
8556
  }
8708
8557
 
8709
- /** Internal state checkpointed between extraction phases. */
8710
- interface ExtractionState {
8711
- id: string;
8712
- pageCount: number;
8713
- classifyResult?: ClassifyResult;
8714
- formInventory?: FormInventoryResult;
8715
- pageAssignments?: PageAssignment[];
8716
- plan?: ExtractionPlan;
8717
- reviewReport?: ExtractionReviewReport;
8718
- memory: Record<string, unknown>;
8719
- document?: InsuranceDocument;
8720
- }
8721
8558
  interface ExtractorConfig {
8722
- generateText: GenerateText;
8723
8559
  generateObject: GenerateObject;
8724
- convertPdfToImages?: ConvertPdfToImagesFn;
8725
- /** Default concurrency for page mapping, extractors, referential lookup, and formatting. */
8726
- concurrency?: number;
8727
- /** Optional override for page-map model calls. Defaults to `concurrency`. */
8728
- pageMapConcurrency?: number;
8729
- /** Optional override for focused extractor model calls. Defaults to `concurrency`. */
8730
- extractorConcurrency?: number;
8731
- /** Optional override for markdown formatting model calls. Defaults to `concurrency`. */
8732
- formatConcurrency?: number;
8733
- maxReviewRounds?: number;
8734
- /** Controls the expensive LLM review pass. `auto` skips it when deterministic checks are clean and source spans are available. */
8735
- reviewMode?: "always" | "auto" | "skip";
8736
8560
  onTokenUsage?: (usage: TokenUsage) => void;
8737
8561
  onProgress?: (message: string) => void;
8738
8562
  log?: LogFn;
@@ -8742,8 +8566,6 @@ interface ExtractorConfig {
8742
8566
  modelCapabilities?: ModelCapabilities;
8743
8567
  modelCapabilitiesByTaskKind?: Partial<Record<ModelTaskKind, ModelCapabilities>>;
8744
8568
  modelBudgetConstraints?: Partial<Record<ModelTaskKind, ModelBudgetConstraint>>;
8745
- /** Optional checkpoint persistence callback. */
8746
- onCheckpointSave?: (checkpoint: PipelineCheckpoint<ExtractionState>) => Promise<void>;
8747
8569
  }
8748
8570
  interface ExtractionResult {
8749
8571
  document: InsuranceDocument;
@@ -8761,14 +8583,8 @@ interface ExtractionResult {
8761
8583
  };
8762
8584
  performanceReport: PerformanceReport;
8763
8585
  reviewReport: ExtractionReviewReport;
8764
- /** Last checkpoint — can be passed as `resumeFrom` to retry from a failure point. */
8765
- checkpoint?: PipelineCheckpoint<ExtractionState>;
8766
8586
  }
8767
8587
  interface ExtractOptions {
8768
- /** Resume extraction from a previously saved checkpoint. */
8769
- resumeFrom?: PipelineCheckpoint<ExtractionState>;
8770
- /** Optional form inventory/page-range hints to guide v3 source-tree hierarchy when source spans are provided. */
8771
- formInventory?: FormInventoryResult;
8772
8588
  /** Caller-provided raw source spans for this document, reused for evidence grounding and optional persistence. */
8773
8589
  sourceSpans?: SourceSpan[];
8774
8590
  }
@@ -10044,4 +9860,4 @@ interface DocumentTemplate {
10044
9860
  }
10045
9861
  declare function getTemplate(policyType: string): DocumentTemplate;
10046
9862
 
10047
- export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, AgentContext, type AgenticExecutionMode, AgenticExecutionModeSchema, type AnswerMergeResult, type AttachmentInterpretation, AttachmentInterpretationSchema, type AuditType, AuditTypeSchema, BOAT_TYPES, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type CaseAction, CaseActionSchema, type CaseCitation, CaseCitationSchema, type CaseEvidence, type CaseEvidenceSource, CaseEvidenceSourceSchema, type CaseField, type CaseItem, type CasePacketArtifact, type CasePacketArtifactKind, CasePacketArtifactKindSchema, CasePacketArtifactSchema, type CaseProposal, CaseProposalSchema, type CaseProposalScore, CaseProposalScoreSchema, type CaseState, type CaseSubmissionPacket, CaseSubmissionPacketSchema, type CaseValidationIssue, CaseValidationIssueSchema, type CaseWorkflowPlan, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, ConvertPdfToImagesFn, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DoclingDocumentLike, type DoclingExtractionInput, type DoclingItemLike, type DoclingNodeLike, type DoclingNormalizedUnit, type DoclingProvenanceLike, DocumentChunk, DocumentSourceNode, DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionInput, type ExtractionResult, type ExtractionState, type ExtractionV3Result, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldMapping, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, GenerateObject, type GeneratePceSubmissionPacketInput, GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, InsuranceDocument, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, LogFn, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, MemorySourceStore, MemoryStore, type MissingInfoQuestion, MissingInfoQuestionSchema, ModelBudgetConstraint, ModelBudgetResolution, ModelCapabilities, ModelTaskKind, type NamedInsured, NamedInsuredSchema, type NormalizedDoclingDocument, type OrderableSourceEvidence, PERSONAL_AUTO_USAGES, PET_SPECIES, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PceAgentConfig, type PceCaseState, PceCaseStateSchema, type PceEvidenceSource, type PceExecutionModePreference, type PceMissingInfoQuestion, type PceNormalizationResult, PceNormalizationResultSchema, type PceQualityGateStatus, type PceQualityReport, type PceSubmissionPacket, PceSubmissionPacketSchema, type PceValidationIssue, PdfInput, PerformanceReport, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, Platform, type PolicyChangeAction, PolicyChangeActionSchema, type PolicyChangeConfidence, PolicyChangeConfidenceSchema, type PolicyChangeImpact, PolicyChangeImpactSchema, type PolicyChangeItem, PolicyChangeItemSchema, type PolicyChangeKind, PolicyChangeKindSchema, type PolicyChangeMissingInfoQuestion, type PolicyChangePacket, type PolicyChangeRequest, PolicyChangeRequestSchema, type PolicyChangeState, type PolicyChangeStatus, PolicyChangeStatusSchema, type PolicyChangeValidationIssue, type PolicyCondition, PolicyConditionSchema, PolicyOperationalProfile, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type ProcessPceChangeRequestInput, type ProcessPceChangeRequestResult, type ProcessPceReplyInput, type ProcessPceReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryAttachment, type QueryAttachmentKind, QueryAttachmentKindSchema, QueryAttachmentSchema, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QueryRetrievalMode, QueryRetrievalModeSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type SectionSourceSpanOptions, type SharedLimit, SharedLimitSchema, type SourceBackedAddress, SourceBackedAddressSchema, SourceChunk, type SourceChunkOptions, SourceKind, type SourceNodeRetrievalResult, type SourcePageInput, type SourceProvenance, SourceProvenanceSchema, type SourceRetrievalMode, type SourceRetrievalQuery, type SourceRetrievalResult, type SourceRetriever, SourceSpan, SourceSpanBBox, type SourceSpanIdInput, SourceSpanLocation, SourceSpanTableLocation, SourceSpanUnit, type SourceStore, type SourceTextUnitInput, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type SubjectivityCategory, SubjectivityCategorySchema, type Sublimit, SublimitSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValidationIssueSeverity, ValidationIssueSeveritySchema, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDoclingProviderOptions, buildDocumentSourceTree, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildInterpretAttachmentPrompt, buildLookupFillPrompt, buildPageSourceSpans, buildPceNormalizePrompt, buildPceQualityReport, buildPceReplyPrompt, buildPceSubmissionPacket, buildPdfProviderOptions, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildSectionSourceSpans, buildSourceSpan, buildSourceSpanId, buildTextSourceSpans, buildVerifyPrompt, chunkDocument, chunkSourceSpans, collectPceEvidenceSources, compareSourceEvidence, createExtractor, createPceAgent, createPipelineContext, createQueryAgent, evaluateCaseProposals, evidenceContainsQuote, extractPageRange, fillAcroForm, generateNextMessage, getAcroFormFields, getDoclingPageRangeText, getExtractor, getFileIdentifier, getPdfPageCount, getTemplate, isDoclingExtractionInput, isFileReference, mergeQuestionAnswers, mergeSourceSpans, normalizeDoclingDocument, normalizeDocumentSourceTreePaths, normalizeForMatch, normalizeSourceSpans, orderSourceEvidence, overlayTextOnPdf, pLimit, pdfInputToBase64, pdfInputToBytes, processReply, safeGenerateObject, sanitizeNulls, scoreCaseProposal, selectPceExecutionMode, sourceSpanTextHash, stableCaseId, stableHash, stablePolicyChangeItemId, stableStringify, stripFences, toStrictSchema, validateEvidence, validatePceItems, validateQuotedEvidence, withRetry };
9863
+ export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, AgentContext, type AgenticExecutionMode, AgenticExecutionModeSchema, type AnswerMergeResult, type AttachmentInterpretation, AttachmentInterpretationSchema, type AuditType, AuditTypeSchema, BOAT_TYPES, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type CaseAction, CaseActionSchema, type CaseCitation, CaseCitationSchema, type CaseEvidence, type CaseEvidenceSource, CaseEvidenceSourceSchema, type CaseField, type CaseItem, type CasePacketArtifact, type CasePacketArtifactKind, CasePacketArtifactKindSchema, CasePacketArtifactSchema, type CaseProposal, CaseProposalSchema, type CaseProposalScore, CaseProposalScoreSchema, type CaseState, type CaseSubmissionPacket, CaseSubmissionPacketSchema, type CaseValidationIssue, CaseValidationIssueSchema, type CaseWorkflowPlan, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DoclingDocumentLike, type DoclingExtractionInput, type DoclingItemLike, type DoclingNodeLike, type DoclingNormalizedUnit, type DoclingProvenanceLike, DocumentChunk, DocumentSourceNode, DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionInput, type ExtractionResult, type ExtractionV3Result, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldMapping, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, GenerateObject, type GeneratePceSubmissionPacketInput, GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, InsuranceDocument, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, LogFn, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, MemorySourceStore, MemoryStore, type MissingInfoQuestion, MissingInfoQuestionSchema, ModelBudgetConstraint, ModelBudgetResolution, ModelCapabilities, ModelTaskKind, type NamedInsured, NamedInsuredSchema, type NormalizedDoclingDocument, type OrderableSourceEvidence, PERSONAL_AUTO_USAGES, PET_SPECIES, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PceAgentConfig, type PceCaseState, PceCaseStateSchema, type PceEvidenceSource, type PceExecutionModePreference, type PceMissingInfoQuestion, type PceNormalizationResult, PceNormalizationResultSchema, type PceQualityGateStatus, type PceQualityReport, type PceSubmissionPacket, PceSubmissionPacketSchema, type PceValidationIssue, PdfInput, PerformanceReport, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, Platform, type PolicyChangeAction, PolicyChangeActionSchema, type PolicyChangeConfidence, PolicyChangeConfidenceSchema, type PolicyChangeImpact, PolicyChangeImpactSchema, type PolicyChangeItem, PolicyChangeItemSchema, type PolicyChangeKind, PolicyChangeKindSchema, type PolicyChangeMissingInfoQuestion, type PolicyChangePacket, type PolicyChangeRequest, PolicyChangeRequestSchema, type PolicyChangeState, type PolicyChangeStatus, PolicyChangeStatusSchema, type PolicyChangeValidationIssue, type PolicyCondition, PolicyConditionSchema, PolicyOperationalProfile, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type ProcessPceChangeRequestInput, type ProcessPceChangeRequestResult, type ProcessPceReplyInput, type ProcessPceReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryAttachment, type QueryAttachmentKind, QueryAttachmentKindSchema, QueryAttachmentSchema, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QueryRetrievalMode, QueryRetrievalModeSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type SectionSourceSpanOptions, type SharedLimit, SharedLimitSchema, type SourceBackedAddress, SourceBackedAddressSchema, SourceChunk, type SourceChunkOptions, SourceKind, type SourceNodeRetrievalResult, type SourcePageInput, type SourceProvenance, SourceProvenanceSchema, type SourceRetrievalMode, type SourceRetrievalQuery, type SourceRetrievalResult, type SourceRetriever, SourceSpan, SourceSpanBBox, type SourceSpanIdInput, SourceSpanLocation, SourceSpanTableLocation, SourceSpanUnit, type SourceStore, type SourceTextUnitInput, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type SubjectivityCategory, SubjectivityCategorySchema, type Sublimit, SublimitSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValidationIssueSeverity, ValidationIssueSeveritySchema, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDoclingProviderOptions, buildDocumentSourceTree, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildInterpretAttachmentPrompt, buildLookupFillPrompt, buildPageSourceSpans, buildPceNormalizePrompt, buildPceQualityReport, buildPceReplyPrompt, buildPceSubmissionPacket, buildPdfProviderOptions, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildSectionSourceSpans, buildSourceSpan, buildSourceSpanId, buildTextSourceSpans, buildVerifyPrompt, chunkDocument, chunkSourceSpans, collectPceEvidenceSources, compareSourceEvidence, createExtractor, createPceAgent, createPipelineContext, createQueryAgent, evaluateCaseProposals, evidenceContainsQuote, extractPageRange, fillAcroForm, generateNextMessage, getAcroFormFields, getDoclingPageRangeText, getExtractor, getFileIdentifier, getPdfPageCount, getTemplate, isDoclingExtractionInput, isFileReference, mergeQuestionAnswers, mergeSourceSpans, normalizeDoclingDocument, normalizeDocumentSourceTreePaths, normalizeForMatch, normalizeSourceSpans, orderSourceEvidence, overlayTextOnPdf, pLimit, pdfInputToBase64, pdfInputToBytes, processReply, safeGenerateObject, sanitizeNulls, scoreCaseProposal, selectPceExecutionMode, sourceSpanTextHash, stableCaseId, stableHash, stablePolicyChangeItemId, stableStringify, stripFences, toStrictSchema, validateEvidence, validatePceItems, validateQuotedEvidence, withRetry };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LogFn, M as ModelTaskKind, a as ModelBudgetResolution, b as ModelCallTrace, G as GenerateObject, T as TokenUsage, S as SourceSpanLocation, c as SourceSpan, D as DocumentSourceNode, d as SourceKind, e as SourceSpanUnit, f as SourceSpanTableLocation, g as SourceChunk, h as SourceSpanBBox, U as UnifiedQualityReport, B as BaseQualityIssue, Q as QualityGateStatus, I as InsuranceDocument, P as PdfInput, i as DocumentChunk, j as PolicyOperationalProfile, k as PerformanceReport, l as GenerateText, C as ConvertPdfToImagesFn, m as QualityGateMode, n as ModelCapabilities, o as ModelBudgetConstraint, A as AgentContext, p as DocumentStore, q as MemoryStore, r as Platform } from './index-B2T7Jvir.js';
2
- export { s as AcroFormMapping, t as AcroFormMappingSchema, u as AnswerParsingResult, v as AnswerParsingResultSchema, w as ApplicationClassifyResult, x as ApplicationClassifyResultSchema, y as ApplicationContextProposal, z as ApplicationContextProposalSchema, E as ApplicationEmailReviewSchema, F as ApplicationField, H as ApplicationFieldSchema, J as ApplicationListFilters, K as ApplicationNextQuestions, N as ApplicationPacket, O as ApplicationPacketAnswer, R as ApplicationPacketAnswerSchema, V as ApplicationPacketSchema, W as ApplicationPipelineConfig, X as ApplicationQualityArtifactSchema, Y as ApplicationQualityIssueSchema, Z as ApplicationQualityReportSchema, _ as ApplicationQualityRoundSchema, $ as ApplicationQuestionCondition, a0 as ApplicationQuestionConditionSchema, a1 as ApplicationQuestionGraph, a2 as ApplicationQuestionGraphSchema, a3 as ApplicationQuestionNode, a4 as ApplicationQuestionNodeSchema, a5 as ApplicationRepeat, a6 as ApplicationRepeatSchema, a7 as ApplicationState, a8 as ApplicationStateSchema, a9 as ApplicationStore, aa as ApplicationTemplate, ab as ApplicationTemplateListFilters, ac as ApplicationTemplateSchema, ad as ApplicationTemplateStore, ae as AutoFillMatch, af as AutoFillMatchSchema, ag as AutoFillResult, ah as AutoFillResultSchema, ai as AuxiliaryFact, aj as AuxiliaryFactSchema, ak as BackfillProvider, al as BuildApplicationPacketInput, am as BuildApplicationPacketResult, an as ChunkFilter, ao as CommunicationIntent, ap as CommunicationIntentSchema, aq as ContextProposalResult, ar as ConversationTurn, as as CoveredReason, at as CoveredReasonSchema, au as CreateApplicationRunInput, av as Definition, aw as DefinitionSchema, ax as DocumentAgentGuidance, ay as DocumentAgentGuidanceSchema, az as DocumentFilters, aA as DocumentMetadata, aB as DocumentMetadataSchema, aC as DocumentNode, aD as DocumentNodeSchema, aE as DocumentPageMapEntry, aF as DocumentPageMapEntrySchema, aG as DocumentSourceNodeKind, aH as DocumentSourceNodeKindSchema, aI as DocumentSourceNodeSchema, aJ as DocumentTableOfContentsEntry, aK as DocumentTableOfContentsEntrySchema, aL as EmbedText, aM as FieldExtractionResult, aN as FieldExtractionResultSchema, aO as FieldType, aP as FieldTypeSchema, aQ as FlatPdfPlacement, aR as FlatPdfPlacementSchema, aS as InsuranceDocumentSchema, aT as LookupFill, aU as LookupFillResult, aV as LookupFillResultSchema, aW as LookupFillSchema, aX as LookupRequest, aY as LookupRequestSchema, aZ as ModelCallReport, a_ as OperationalCoverageLine, a$ as OperationalCoverageLineSchema, b0 as OperationalCoverageTerm, b1 as OperationalCoverageTermSchema, b2 as OperationalEndorsementSupport, b3 as OperationalEndorsementSupportSchema, b4 as OperationalParty, b5 as OperationalPartySchema, b6 as PLATFORM_CONFIGS, b7 as ParsedAnswer, b8 as ParsedAnswerSchema, b9 as PlatformConfig, ba as PlatformSchema, bb as PolicyDocument, bc as PolicyDocumentSchema, bd as PolicyOperationalProfileSchema, be as PremiumLine, bf as PremiumLineSchema, bg as PriorAnswer, bh as ProcessApplicationInput, bi as ProcessApplicationResult, bj as ProcessReplyInput, bk as ProcessReplyResult, bl as QuestionBatchResult, bm as QuestionBatchResultSchema, bn as QuoteDocument, bo as QuoteDocumentSchema, bp as ReplyIntent, bq as ReplyIntentSchema, br as ResolveModelBudgetParams, bs as Section, bt as SectionSchema, bu as SourceBackedValue, bv as SourceBackedValueSchema, bw as SourceChunkSchema, bx as SourceKindSchema, by as SourceSpanBBoxSchema, bz as SourceSpanKind, bA as SourceSpanKindSchema, bB as SourceSpanLocationSchema, bC as SourceSpanRef, bD as SourceSpanRefSchema, bE as SourceSpanSchema, bF as SourceSpanTableLocationSchema, bG as SourceSpanUnitSchema, bH as Subjectivity, bI as SubjectivitySchema, bJ as Subsection, bK as SubsectionSchema, bL as UnderwritingCondition, bM as UnderwritingConditionSchema, bN as applyApplicationAnswers, bO as buildApplicationPacket, bP as buildQuestionGraphFromFields, bQ as createApplicationPipeline, bR as createApplicationRun, bS as extractQuestionGraphFromFields, bT as flattenQuestionGraph, bU as getActiveApplicationFields, bV as getNextApplicationQuestions, bW as normalizeApplicationQuestionGraph, bX as planNextApplicationQuestions, bY as proposeContextWrites, bZ as resolveModelBudget, b_ as validateApplicationPacket } from './index-B2T7Jvir.js';
1
+ import { L as LogFn, M as ModelTaskKind, a as ModelBudgetResolution, b as ModelCallTrace, G as GenerateObject, T as TokenUsage, S as SourceSpanLocation, c as SourceSpan, D as DocumentSourceNode, d as SourceKind, e as SourceSpanUnit, f as SourceSpanTableLocation, g as SourceChunk, h as SourceSpanBBox, U as UnifiedQualityReport, B as BaseQualityIssue, Q as QualityGateStatus, P as PdfInput, I as InsuranceDocument, i as DocumentChunk, j as PolicyOperationalProfile, k as PerformanceReport, l as QualityGateMode, m as ModelCapabilities, n as ModelBudgetConstraint, A as AgentContext, o as GenerateText, p as DocumentStore, q as MemoryStore, r as Platform } from './index-BGyy2VS6.js';
2
+ export { s as AcroFormMapping, t as AcroFormMappingSchema, u as AnswerParsingResult, v as AnswerParsingResultSchema, w as ApplicationClassifyResult, x as ApplicationClassifyResultSchema, y as ApplicationContextProposal, z as ApplicationContextProposalSchema, C as ApplicationEmailReviewSchema, E as ApplicationField, F as ApplicationFieldSchema, H as ApplicationListFilters, J as ApplicationNextQuestions, K as ApplicationPacket, N as ApplicationPacketAnswer, O as ApplicationPacketAnswerSchema, R as ApplicationPacketSchema, V as ApplicationPipelineConfig, W as ApplicationQualityArtifactSchema, X as ApplicationQualityIssueSchema, Y as ApplicationQualityReportSchema, Z as ApplicationQualityRoundSchema, _ as ApplicationQuestionCondition, $ as ApplicationQuestionConditionSchema, a0 as ApplicationQuestionGraph, a1 as ApplicationQuestionGraphSchema, a2 as ApplicationQuestionNode, a3 as ApplicationQuestionNodeSchema, a4 as ApplicationRepeat, a5 as ApplicationRepeatSchema, a6 as ApplicationState, a7 as ApplicationStateSchema, a8 as ApplicationStore, a9 as ApplicationTemplate, aa as ApplicationTemplateListFilters, ab as ApplicationTemplateSchema, ac as ApplicationTemplateStore, ad as AutoFillMatch, ae as AutoFillMatchSchema, af as AutoFillResult, ag as AutoFillResultSchema, ah as AuxiliaryFact, ai as AuxiliaryFactSchema, aj as BackfillProvider, ak as BuildApplicationPacketInput, al as BuildApplicationPacketResult, am as ChunkFilter, an as CommunicationIntent, ao as CommunicationIntentSchema, ap as ContextProposalResult, aq as ConversationTurn, ar as ConvertPdfToImagesFn, as as CoveredReason, at as CoveredReasonSchema, au as CreateApplicationRunInput, av as Definition, aw as DefinitionSchema, ax as DocumentAgentGuidance, ay as DocumentAgentGuidanceSchema, az as DocumentFilters, aA as DocumentMetadata, aB as DocumentMetadataSchema, aC as DocumentNode, aD as DocumentNodeSchema, aE as DocumentPageMapEntry, aF as DocumentPageMapEntrySchema, aG as DocumentSourceNodeKind, aH as DocumentSourceNodeKindSchema, aI as DocumentSourceNodeSchema, aJ as DocumentTableOfContentsEntry, aK as DocumentTableOfContentsEntrySchema, aL as EmbedText, aM as FieldExtractionResult, aN as FieldExtractionResultSchema, aO as FieldType, aP as FieldTypeSchema, aQ as FlatPdfPlacement, aR as FlatPdfPlacementSchema, aS as InsuranceDocumentSchema, aT as LookupFill, aU as LookupFillResult, aV as LookupFillResultSchema, aW as LookupFillSchema, aX as LookupRequest, aY as LookupRequestSchema, aZ as ModelCallReport, a_ as OperationalCoverageLine, a$ as OperationalCoverageLineSchema, b0 as OperationalCoverageTerm, b1 as OperationalCoverageTermSchema, b2 as OperationalEndorsementSupport, b3 as OperationalEndorsementSupportSchema, b4 as OperationalParty, b5 as OperationalPartySchema, b6 as PLATFORM_CONFIGS, b7 as ParsedAnswer, b8 as ParsedAnswerSchema, b9 as PlatformConfig, ba as PlatformSchema, bb as PolicyDocument, bc as PolicyDocumentSchema, bd as PolicyOperationalProfileSchema, be as PremiumLine, bf as PremiumLineSchema, bg as PriorAnswer, bh as ProcessApplicationInput, bi as ProcessApplicationResult, bj as ProcessReplyInput, bk as ProcessReplyResult, bl as QuestionBatchResult, bm as QuestionBatchResultSchema, bn as QuoteDocument, bo as QuoteDocumentSchema, bp as ReplyIntent, bq as ReplyIntentSchema, br as ResolveModelBudgetParams, bs as Section, bt as SectionSchema, bu as SourceBackedValue, bv as SourceBackedValueSchema, bw as SourceChunkSchema, bx as SourceKindSchema, by as SourceSpanBBoxSchema, bz as SourceSpanKind, bA as SourceSpanKindSchema, bB as SourceSpanLocationSchema, bC as SourceSpanRef, bD as SourceSpanRefSchema, bE as SourceSpanSchema, bF as SourceSpanTableLocationSchema, bG as SourceSpanUnitSchema, bH as Subjectivity, bI as SubjectivitySchema, bJ as Subsection, bK as SubsectionSchema, bL as UnderwritingCondition, bM as UnderwritingConditionSchema, bN as applyApplicationAnswers, bO as buildApplicationPacket, bP as buildQuestionGraphFromFields, bQ as createApplicationPipeline, bR as createApplicationRun, bS as extractQuestionGraphFromFields, bT as flattenQuestionGraph, bU as getActiveApplicationFields, bV as getNextApplicationQuestions, bW as normalizeApplicationQuestionGraph, bX as planNextApplicationQuestions, bY as proposeContextWrites, bZ as resolveModelBudget, b_ as validateApplicationPacket } from './index-BGyy2VS6.js';
3
3
  import * as zod from 'zod';
4
4
  import { ZodTypeAny, z, ZodSchema } from 'zod';
5
5
  import { PDFDocument } from 'pdf-lib';
@@ -8523,157 +8523,6 @@ declare function getDoclingPageRangeText(normalized: NormalizedDoclingDocument,
8523
8523
  declare function buildDoclingProviderOptions(normalized: NormalizedDoclingDocument, existingOptions?: Record<string, unknown>): Record<string, unknown>;
8524
8524
  declare function mergeSourceSpans(spans: SourceSpan[]): SourceSpan[];
8525
8525
 
8526
- declare const ClassifyResultSchema: z.ZodObject<{
8527
- documentType: z.ZodEnum<["policy", "quote"]>;
8528
- policyTypes: z.ZodArray<z.ZodEnum<["general_liability", "commercial_property", "commercial_auto", "non_owned_auto", "workers_comp", "umbrella", "excess_liability", "professional_liability", "cyber", "epli", "directors_officers", "fiduciary_liability", "crime_fidelity", "inland_marine", "builders_risk", "environmental", "ocean_marine", "surety", "product_liability", "bop", "management_liability_package", "property", "homeowners_ho3", "homeowners_ho5", "renters_ho4", "condo_ho6", "dwelling_fire", "mobile_home", "personal_auto", "personal_umbrella", "flood_nfip", "flood_private", "earthquake", "personal_inland_marine", "watercraft", "recreational_vehicle", "farm_ranch", "pet", "travel", "identity_theft", "title", "other"]>, "many">;
8529
- confidence: z.ZodNumber;
8530
- }, "strip", z.ZodTypeAny, {
8531
- policyTypes: ("general_liability" | "commercial_property" | "commercial_auto" | "non_owned_auto" | "workers_comp" | "umbrella" | "excess_liability" | "professional_liability" | "cyber" | "epli" | "directors_officers" | "fiduciary_liability" | "crime_fidelity" | "inland_marine" | "builders_risk" | "environmental" | "ocean_marine" | "surety" | "product_liability" | "bop" | "management_liability_package" | "property" | "homeowners_ho3" | "homeowners_ho5" | "renters_ho4" | "condo_ho6" | "dwelling_fire" | "mobile_home" | "personal_auto" | "personal_umbrella" | "flood_nfip" | "flood_private" | "earthquake" | "personal_inland_marine" | "watercraft" | "recreational_vehicle" | "farm_ranch" | "pet" | "travel" | "identity_theft" | "title" | "other")[];
8532
- confidence: number;
8533
- documentType: "policy" | "quote";
8534
- }, {
8535
- policyTypes: ("general_liability" | "commercial_property" | "commercial_auto" | "non_owned_auto" | "workers_comp" | "umbrella" | "excess_liability" | "professional_liability" | "cyber" | "epli" | "directors_officers" | "fiduciary_liability" | "crime_fidelity" | "inland_marine" | "builders_risk" | "environmental" | "ocean_marine" | "surety" | "product_liability" | "bop" | "management_liability_package" | "property" | "homeowners_ho3" | "homeowners_ho5" | "renters_ho4" | "condo_ho6" | "dwelling_fire" | "mobile_home" | "personal_auto" | "personal_umbrella" | "flood_nfip" | "flood_private" | "earthquake" | "personal_inland_marine" | "watercraft" | "recreational_vehicle" | "farm_ranch" | "pet" | "travel" | "identity_theft" | "title" | "other")[];
8536
- confidence: number;
8537
- documentType: "policy" | "quote";
8538
- }>;
8539
- type ClassifyResult = z.infer<typeof ClassifyResultSchema>;
8540
-
8541
- declare const ExtractionPlanSchema: z.ZodObject<{
8542
- tasks: z.ZodArray<z.ZodObject<{
8543
- extractorName: z.ZodString;
8544
- startPage: z.ZodNumber;
8545
- endPage: z.ZodNumber;
8546
- description: z.ZodString;
8547
- }, "strip", z.ZodTypeAny, {
8548
- description: string;
8549
- startPage: number;
8550
- endPage: number;
8551
- extractorName: string;
8552
- }, {
8553
- description: string;
8554
- startPage: number;
8555
- endPage: number;
8556
- extractorName: string;
8557
- }>, "many">;
8558
- pageMap: z.ZodOptional<z.ZodArray<z.ZodObject<{
8559
- section: z.ZodString;
8560
- pages: z.ZodString;
8561
- }, "strip", z.ZodTypeAny, {
8562
- section: string;
8563
- pages: string;
8564
- }, {
8565
- section: string;
8566
- pages: string;
8567
- }>, "many">>;
8568
- }, "strip", z.ZodTypeAny, {
8569
- tasks: {
8570
- description: string;
8571
- startPage: number;
8572
- endPage: number;
8573
- extractorName: string;
8574
- }[];
8575
- pageMap?: {
8576
- section: string;
8577
- pages: string;
8578
- }[] | undefined;
8579
- }, {
8580
- tasks: {
8581
- description: string;
8582
- startPage: number;
8583
- endPage: number;
8584
- extractorName: string;
8585
- }[];
8586
- pageMap?: {
8587
- section: string;
8588
- pages: string;
8589
- }[] | undefined;
8590
- }>;
8591
- type ExtractionPlan = z.infer<typeof ExtractionPlanSchema>;
8592
-
8593
- declare const FormInventorySchema: z.ZodObject<{
8594
- forms: z.ZodArray<z.ZodObject<{
8595
- editionDate: z.ZodOptional<z.ZodString>;
8596
- title: z.ZodOptional<z.ZodString>;
8597
- formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
8598
- documentNodeId: z.ZodOptional<z.ZodString>;
8599
- sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8600
- sourceTextHash: z.ZodOptional<z.ZodString>;
8601
- } & {
8602
- formNumber: z.ZodString;
8603
- pageStart: z.ZodOptional<z.ZodNumber>;
8604
- pageEnd: z.ZodOptional<z.ZodNumber>;
8605
- }, "strip", z.ZodTypeAny, {
8606
- formNumber: string;
8607
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8608
- title?: string | undefined;
8609
- sourceSpanIds?: string[] | undefined;
8610
- documentNodeId?: string | undefined;
8611
- sourceTextHash?: string | undefined;
8612
- pageStart?: number | undefined;
8613
- pageEnd?: number | undefined;
8614
- editionDate?: string | undefined;
8615
- }, {
8616
- formNumber: string;
8617
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8618
- title?: string | undefined;
8619
- sourceSpanIds?: string[] | undefined;
8620
- documentNodeId?: string | undefined;
8621
- sourceTextHash?: string | undefined;
8622
- pageStart?: number | undefined;
8623
- pageEnd?: number | undefined;
8624
- editionDate?: string | undefined;
8625
- }>, "many">;
8626
- }, "strip", z.ZodTypeAny, {
8627
- forms: {
8628
- formNumber: string;
8629
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8630
- title?: string | undefined;
8631
- sourceSpanIds?: string[] | undefined;
8632
- documentNodeId?: string | undefined;
8633
- sourceTextHash?: string | undefined;
8634
- pageStart?: number | undefined;
8635
- pageEnd?: number | undefined;
8636
- editionDate?: string | undefined;
8637
- }[];
8638
- }, {
8639
- forms: {
8640
- formNumber: string;
8641
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
8642
- title?: string | undefined;
8643
- sourceSpanIds?: string[] | undefined;
8644
- documentNodeId?: string | undefined;
8645
- sourceTextHash?: string | undefined;
8646
- pageStart?: number | undefined;
8647
- pageEnd?: number | undefined;
8648
- editionDate?: string | undefined;
8649
- }[];
8650
- }>;
8651
- type FormInventoryResult = z.infer<typeof FormInventorySchema>;
8652
-
8653
- declare const PageAssignmentSchema: z.ZodObject<{
8654
- localPageNumber: z.ZodNumber;
8655
- extractorNames: z.ZodArray<z.ZodEnum<["carrier_info", "named_insured", "coverage_limits", "covered_reasons", "definitions", "endorsements", "exclusions", "conditions", "premium_breakdown", "declarations", "loss_history", "sections", "supplementary"]>, "many">;
8656
- pageRole: z.ZodOptional<z.ZodEnum<["declarations_schedule", "endorsement_schedule", "policy_form", "endorsement_form", "condition_exclusion_form", "supplementary", "other"]>>;
8657
- hasScheduleValues: z.ZodOptional<z.ZodBoolean>;
8658
- confidence: z.ZodOptional<z.ZodNumber>;
8659
- notes: z.ZodOptional<z.ZodString>;
8660
- }, "strip", z.ZodTypeAny, {
8661
- extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "definitions" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "covered_reasons" | "premium_breakdown")[];
8662
- localPageNumber: number;
8663
- confidence?: number | undefined;
8664
- pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
8665
- hasScheduleValues?: boolean | undefined;
8666
- notes?: string | undefined;
8667
- }, {
8668
- extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "definitions" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "covered_reasons" | "premium_breakdown")[];
8669
- localPageNumber: number;
8670
- confidence?: number | undefined;
8671
- pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
8672
- hasScheduleValues?: boolean | undefined;
8673
- notes?: string | undefined;
8674
- }>;
8675
- type PageAssignment = z.infer<typeof PageAssignmentSchema>;
8676
-
8677
8526
  interface FormInventoryEntry {
8678
8527
  formNumber: string;
8679
8528
  title?: string;
@@ -8706,33 +8555,8 @@ interface ExtractionReviewReport extends UnifiedQualityReport<QualityIssue> {
8706
8555
  qualityGateStatus: QualityGateStatus;
8707
8556
  }
8708
8557
 
8709
- /** Internal state checkpointed between extraction phases. */
8710
- interface ExtractionState {
8711
- id: string;
8712
- pageCount: number;
8713
- classifyResult?: ClassifyResult;
8714
- formInventory?: FormInventoryResult;
8715
- pageAssignments?: PageAssignment[];
8716
- plan?: ExtractionPlan;
8717
- reviewReport?: ExtractionReviewReport;
8718
- memory: Record<string, unknown>;
8719
- document?: InsuranceDocument;
8720
- }
8721
8558
  interface ExtractorConfig {
8722
- generateText: GenerateText;
8723
8559
  generateObject: GenerateObject;
8724
- convertPdfToImages?: ConvertPdfToImagesFn;
8725
- /** Default concurrency for page mapping, extractors, referential lookup, and formatting. */
8726
- concurrency?: number;
8727
- /** Optional override for page-map model calls. Defaults to `concurrency`. */
8728
- pageMapConcurrency?: number;
8729
- /** Optional override for focused extractor model calls. Defaults to `concurrency`. */
8730
- extractorConcurrency?: number;
8731
- /** Optional override for markdown formatting model calls. Defaults to `concurrency`. */
8732
- formatConcurrency?: number;
8733
- maxReviewRounds?: number;
8734
- /** Controls the expensive LLM review pass. `auto` skips it when deterministic checks are clean and source spans are available. */
8735
- reviewMode?: "always" | "auto" | "skip";
8736
8560
  onTokenUsage?: (usage: TokenUsage) => void;
8737
8561
  onProgress?: (message: string) => void;
8738
8562
  log?: LogFn;
@@ -8742,8 +8566,6 @@ interface ExtractorConfig {
8742
8566
  modelCapabilities?: ModelCapabilities;
8743
8567
  modelCapabilitiesByTaskKind?: Partial<Record<ModelTaskKind, ModelCapabilities>>;
8744
8568
  modelBudgetConstraints?: Partial<Record<ModelTaskKind, ModelBudgetConstraint>>;
8745
- /** Optional checkpoint persistence callback. */
8746
- onCheckpointSave?: (checkpoint: PipelineCheckpoint<ExtractionState>) => Promise<void>;
8747
8569
  }
8748
8570
  interface ExtractionResult {
8749
8571
  document: InsuranceDocument;
@@ -8761,14 +8583,8 @@ interface ExtractionResult {
8761
8583
  };
8762
8584
  performanceReport: PerformanceReport;
8763
8585
  reviewReport: ExtractionReviewReport;
8764
- /** Last checkpoint — can be passed as `resumeFrom` to retry from a failure point. */
8765
- checkpoint?: PipelineCheckpoint<ExtractionState>;
8766
8586
  }
8767
8587
  interface ExtractOptions {
8768
- /** Resume extraction from a previously saved checkpoint. */
8769
- resumeFrom?: PipelineCheckpoint<ExtractionState>;
8770
- /** Optional form inventory/page-range hints to guide v3 source-tree hierarchy when source spans are provided. */
8771
- formInventory?: FormInventoryResult;
8772
8588
  /** Caller-provided raw source spans for this document, reused for evidence grounding and optional persistence. */
8773
8589
  sourceSpans?: SourceSpan[];
8774
8590
  }
@@ -10044,4 +9860,4 @@ interface DocumentTemplate {
10044
9860
  }
10045
9861
  declare function getTemplate(policyType: string): DocumentTemplate;
10046
9862
 
10047
- export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, AgentContext, type AgenticExecutionMode, AgenticExecutionModeSchema, type AnswerMergeResult, type AttachmentInterpretation, AttachmentInterpretationSchema, type AuditType, AuditTypeSchema, BOAT_TYPES, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type CaseAction, CaseActionSchema, type CaseCitation, CaseCitationSchema, type CaseEvidence, type CaseEvidenceSource, CaseEvidenceSourceSchema, type CaseField, type CaseItem, type CasePacketArtifact, type CasePacketArtifactKind, CasePacketArtifactKindSchema, CasePacketArtifactSchema, type CaseProposal, CaseProposalSchema, type CaseProposalScore, CaseProposalScoreSchema, type CaseState, type CaseSubmissionPacket, CaseSubmissionPacketSchema, type CaseValidationIssue, CaseValidationIssueSchema, type CaseWorkflowPlan, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, ConvertPdfToImagesFn, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DoclingDocumentLike, type DoclingExtractionInput, type DoclingItemLike, type DoclingNodeLike, type DoclingNormalizedUnit, type DoclingProvenanceLike, DocumentChunk, DocumentSourceNode, DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionInput, type ExtractionResult, type ExtractionState, type ExtractionV3Result, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldMapping, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, GenerateObject, type GeneratePceSubmissionPacketInput, GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, InsuranceDocument, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, LogFn, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, MemorySourceStore, MemoryStore, type MissingInfoQuestion, MissingInfoQuestionSchema, ModelBudgetConstraint, ModelBudgetResolution, ModelCapabilities, ModelTaskKind, type NamedInsured, NamedInsuredSchema, type NormalizedDoclingDocument, type OrderableSourceEvidence, PERSONAL_AUTO_USAGES, PET_SPECIES, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PceAgentConfig, type PceCaseState, PceCaseStateSchema, type PceEvidenceSource, type PceExecutionModePreference, type PceMissingInfoQuestion, type PceNormalizationResult, PceNormalizationResultSchema, type PceQualityGateStatus, type PceQualityReport, type PceSubmissionPacket, PceSubmissionPacketSchema, type PceValidationIssue, PdfInput, PerformanceReport, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, Platform, type PolicyChangeAction, PolicyChangeActionSchema, type PolicyChangeConfidence, PolicyChangeConfidenceSchema, type PolicyChangeImpact, PolicyChangeImpactSchema, type PolicyChangeItem, PolicyChangeItemSchema, type PolicyChangeKind, PolicyChangeKindSchema, type PolicyChangeMissingInfoQuestion, type PolicyChangePacket, type PolicyChangeRequest, PolicyChangeRequestSchema, type PolicyChangeState, type PolicyChangeStatus, PolicyChangeStatusSchema, type PolicyChangeValidationIssue, type PolicyCondition, PolicyConditionSchema, PolicyOperationalProfile, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type ProcessPceChangeRequestInput, type ProcessPceChangeRequestResult, type ProcessPceReplyInput, type ProcessPceReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryAttachment, type QueryAttachmentKind, QueryAttachmentKindSchema, QueryAttachmentSchema, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QueryRetrievalMode, QueryRetrievalModeSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type SectionSourceSpanOptions, type SharedLimit, SharedLimitSchema, type SourceBackedAddress, SourceBackedAddressSchema, SourceChunk, type SourceChunkOptions, SourceKind, type SourceNodeRetrievalResult, type SourcePageInput, type SourceProvenance, SourceProvenanceSchema, type SourceRetrievalMode, type SourceRetrievalQuery, type SourceRetrievalResult, type SourceRetriever, SourceSpan, SourceSpanBBox, type SourceSpanIdInput, SourceSpanLocation, SourceSpanTableLocation, SourceSpanUnit, type SourceStore, type SourceTextUnitInput, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type SubjectivityCategory, SubjectivityCategorySchema, type Sublimit, SublimitSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValidationIssueSeverity, ValidationIssueSeveritySchema, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDoclingProviderOptions, buildDocumentSourceTree, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildInterpretAttachmentPrompt, buildLookupFillPrompt, buildPageSourceSpans, buildPceNormalizePrompt, buildPceQualityReport, buildPceReplyPrompt, buildPceSubmissionPacket, buildPdfProviderOptions, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildSectionSourceSpans, buildSourceSpan, buildSourceSpanId, buildTextSourceSpans, buildVerifyPrompt, chunkDocument, chunkSourceSpans, collectPceEvidenceSources, compareSourceEvidence, createExtractor, createPceAgent, createPipelineContext, createQueryAgent, evaluateCaseProposals, evidenceContainsQuote, extractPageRange, fillAcroForm, generateNextMessage, getAcroFormFields, getDoclingPageRangeText, getExtractor, getFileIdentifier, getPdfPageCount, getTemplate, isDoclingExtractionInput, isFileReference, mergeQuestionAnswers, mergeSourceSpans, normalizeDoclingDocument, normalizeDocumentSourceTreePaths, normalizeForMatch, normalizeSourceSpans, orderSourceEvidence, overlayTextOnPdf, pLimit, pdfInputToBase64, pdfInputToBytes, processReply, safeGenerateObject, sanitizeNulls, scoreCaseProposal, selectPceExecutionMode, sourceSpanTextHash, stableCaseId, stableHash, stablePolicyChangeItemId, stableStringify, stripFences, toStrictSchema, validateEvidence, validatePceItems, validateQuotedEvidence, withRetry };
9863
+ export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, AgentContext, type AgenticExecutionMode, AgenticExecutionModeSchema, type AnswerMergeResult, type AttachmentInterpretation, AttachmentInterpretationSchema, type AuditType, AuditTypeSchema, BOAT_TYPES, type BindingAuthority, BindingAuthoritySchema, type BoatType, BoatTypeSchema, CHUNK_TYPES, CLAIM_STATUSES, COI_GENERATION_TOOL, CONDITION_TYPES, CONSTRUCTION_TYPES, CONTEXT_KEY_MAP, COVERAGE_COMPARISON_TOOL, COVERAGE_FORMS, COVERAGE_TRIGGERS, type CaseAction, CaseActionSchema, type CaseCitation, CaseCitationSchema, type CaseEvidence, type CaseEvidenceSource, CaseEvidenceSourceSchema, type CaseField, type CaseItem, type CasePacketArtifact, type CasePacketArtifactKind, CasePacketArtifactKindSchema, CasePacketArtifactSchema, type CaseProposal, CaseProposalSchema, type CaseProposalScore, CaseProposalScoreSchema, type CaseState, type CaseSubmissionPacket, CaseSubmissionPacketSchema, type CaseValidationIssue, CaseValidationIssueSchema, type CaseWorkflowPlan, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, type CoverageValueType, CoverageValueTypeSchema, type CrimeDeclarations, CrimeDeclarationsSchema, type CyberDeclarations, CyberDeclarationsSchema, DEDUCTIBLE_TYPES, DEFENSE_COST_TREATMENTS, DOCUMENT_LOOKUP_TOOL, DOCUMENT_TYPES, type DODeclarations, DODeclarationsSchema, DWELLING_FIRE_FORM_TYPES, type Declarations, DeclarationsSchema, type DeductibleSchedule, DeductibleScheduleSchema, type DeductibleType, DeductibleTypeSchema, type DefenseCostTreatment, DefenseCostTreatmentSchema, type DoclingDocumentLike, type DoclingExtractionInput, type DoclingItemLike, type DoclingNodeLike, type DoclingNormalizedUnit, type DoclingProvenanceLike, DocumentChunk, DocumentSourceNode, DocumentStore, type DocumentTemplate, type DocumentType, DocumentTypeSchema, type DriverRecord, DriverRecordSchema, type DwellingDetails, DwellingDetailsSchema, type DwellingFireDeclarations, DwellingFireDeclarationsSchema, type DwellingFireFormType, DwellingFireFormTypeSchema, ENDORSEMENT_PARTY_ROLES, ENDORSEMENT_TYPES, ENTITY_TYPES, type EarthquakeDeclarations, EarthquakeDeclarationsSchema, type EmployersLiabilityLimits, EmployersLiabilityLimitsSchema, type Endorsement, type EndorsementParty, type EndorsementPartyRole, EndorsementPartyRoleSchema, EndorsementPartySchema, EndorsementSchema, type EndorsementType, EndorsementTypeSchema, type EnrichedCoverage, EnrichedCoverageSchema, type EnrichedSubjectivity, EnrichedSubjectivitySchema, type EnrichedUnderwritingCondition, EnrichedUnderwritingConditionSchema, type EntityType, EntityTypeSchema, type EvidenceItem, EvidenceItemSchema, type Exclusion, ExclusionSchema, type ExperienceMod, ExperienceModSchema, type ExtendedReportingPeriod, ExtendedReportingPeriodSchema, type ExtractOptions, type ExtractionInput, type ExtractionResult, type ExtractionV3Result, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldMapping, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, GenerateObject, type GeneratePceSubmissionPacketInput, GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, InsuranceDocument, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, LogFn, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, MemorySourceStore, MemoryStore, type MissingInfoQuestion, MissingInfoQuestionSchema, ModelBudgetConstraint, ModelBudgetResolution, ModelCapabilities, ModelTaskKind, type NamedInsured, NamedInsuredSchema, type NormalizedDoclingDocument, type OrderableSourceEvidence, PERSONAL_AUTO_USAGES, PET_SPECIES, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, type PceAgentConfig, type PceCaseState, PceCaseStateSchema, type PceEvidenceSource, type PceExecutionModePreference, type PceMissingInfoQuestion, type PceNormalizationResult, PceNormalizationResultSchema, type PceQualityGateStatus, type PceQualityReport, type PceSubmissionPacket, PceSubmissionPacketSchema, type PceValidationIssue, PdfInput, PerformanceReport, type PersonalArticlesDeclarations, PersonalArticlesDeclarationsSchema, type PersonalAutoDeclarations, PersonalAutoDeclarationsSchema, type PersonalAutoUsage, PersonalAutoUsageSchema, type PersonalUmbrellaDeclarations, PersonalUmbrellaDeclarationsSchema, type PersonalVehicleDetails, PersonalVehicleDetailsSchema, type PetDeclarations, PetDeclarationsSchema, type PetSpecies, PetSpeciesSchema, type PipelineCheckpoint, type PipelineContext, type PipelineContextOptions, Platform, type PolicyChangeAction, PolicyChangeActionSchema, type PolicyChangeConfidence, PolicyChangeConfidenceSchema, type PolicyChangeImpact, PolicyChangeImpactSchema, type PolicyChangeItem, PolicyChangeItemSchema, type PolicyChangeKind, PolicyChangeKindSchema, type PolicyChangeMissingInfoQuestion, type PolicyChangePacket, type PolicyChangeRequest, PolicyChangeRequestSchema, type PolicyChangeState, type PolicyChangeStatus, PolicyChangeStatusSchema, type PolicyChangeValidationIssue, type PolicyCondition, PolicyConditionSchema, PolicyOperationalProfile, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type ProcessPceChangeRequestInput, type ProcessPceChangeRequestResult, type ProcessPceReplyInput, type ProcessPceReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryAttachment, type QueryAttachmentKind, QueryAttachmentKindSchema, QueryAttachmentSchema, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QueryRetrievalMode, QueryRetrievalModeSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type SectionSourceSpanOptions, type SharedLimit, SharedLimitSchema, type SourceBackedAddress, SourceBackedAddressSchema, SourceChunk, type SourceChunkOptions, SourceKind, type SourceNodeRetrievalResult, type SourcePageInput, type SourceProvenance, SourceProvenanceSchema, type SourceRetrievalMode, type SourceRetrievalQuery, type SourceRetrievalResult, type SourceRetriever, SourceSpan, SourceSpanBBox, type SourceSpanIdInput, SourceSpanLocation, SourceSpanTableLocation, SourceSpanUnit, type SourceStore, type SourceTextUnitInput, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type SubjectivityCategory, SubjectivityCategorySchema, type Sublimit, SublimitSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, type ValidationIssueSeverity, ValidationIssueSeveritySchema, type ValuationMethod, ValuationMethodSchema, type VehicleCoverage, VehicleCoverageSchema, type VehicleCoverageType, VehicleCoverageTypeSchema, type VerifyResult, VerifyResultSchema, type WatercraftDeclarations, WatercraftDeclarationsSchema, type WorkersCompDeclarations, WorkersCompDeclarationsSchema, buildAcroFormMappingPrompt, buildAgentSystemPrompt, buildAnswerParsingPrompt, buildAutoFillPrompt, buildBatchEmailGenerationPrompt, buildClassifyMessagePrompt, buildCoiRoutingPrompt, buildConfirmationSummaryPrompt, buildConversationMemoryGuidance, buildCoverageGapPrompt, buildDoclingProviderOptions, buildDocumentSourceTree, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildInterpretAttachmentPrompt, buildLookupFillPrompt, buildPageSourceSpans, buildPceNormalizePrompt, buildPceQualityReport, buildPceReplyPrompt, buildPceSubmissionPacket, buildPdfProviderOptions, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildSectionSourceSpans, buildSourceSpan, buildSourceSpanId, buildTextSourceSpans, buildVerifyPrompt, chunkDocument, chunkSourceSpans, collectPceEvidenceSources, compareSourceEvidence, createExtractor, createPceAgent, createPipelineContext, createQueryAgent, evaluateCaseProposals, evidenceContainsQuote, extractPageRange, fillAcroForm, generateNextMessage, getAcroFormFields, getDoclingPageRangeText, getExtractor, getFileIdentifier, getPdfPageCount, getTemplate, isDoclingExtractionInput, isFileReference, mergeQuestionAnswers, mergeSourceSpans, normalizeDoclingDocument, normalizeDocumentSourceTreePaths, normalizeForMatch, normalizeSourceSpans, orderSourceEvidence, overlayTextOnPdf, pLimit, pdfInputToBase64, pdfInputToBytes, processReply, safeGenerateObject, sanitizeNulls, scoreCaseProposal, selectPceExecutionMode, sourceSpanTextHash, stableCaseId, stableHash, stablePolicyChangeItemId, stableStringify, stripFences, toStrictSchema, validateEvidence, validatePceItems, validateQuotedEvidence, withRetry };