@claritylabs/cl-sdk 0.9.0 → 0.10.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
@@ -349,16 +349,22 @@ declare const FormReferenceSchema: z.ZodObject<{
349
349
  editionDate: z.ZodOptional<z.ZodString>;
350
350
  title: z.ZodOptional<z.ZodString>;
351
351
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
352
+ pageStart: z.ZodOptional<z.ZodNumber>;
353
+ pageEnd: z.ZodOptional<z.ZodNumber>;
352
354
  }, "strip", z.ZodTypeAny, {
353
355
  formNumber: string;
354
356
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
355
357
  title?: string | undefined;
356
358
  editionDate?: string | undefined;
359
+ pageStart?: number | undefined;
360
+ pageEnd?: number | undefined;
357
361
  }, {
358
362
  formNumber: string;
359
363
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
360
364
  title?: string | undefined;
361
365
  editionDate?: string | undefined;
366
+ pageStart?: number | undefined;
367
+ pageEnd?: number | undefined;
362
368
  }>;
363
369
  type FormReference = z.infer<typeof FormReferenceSchema>;
364
370
  declare const TaxFeeItemSchema: z.ZodObject<{
@@ -487,24 +493,38 @@ declare const NamedInsuredSchema: z.ZodObject<{
487
493
  }>;
488
494
  type NamedInsured = z.infer<typeof NamedInsuredSchema>;
489
495
 
496
+ declare const CoverageValueTypeSchema: z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>;
497
+ type CoverageValueType = z.infer<typeof CoverageValueTypeSchema>;
490
498
  declare const CoverageSchema: z.ZodObject<{
491
499
  name: z.ZodString;
492
500
  limit: z.ZodString;
501
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
493
502
  deductible: z.ZodOptional<z.ZodString>;
503
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
504
+ formNumber: z.ZodOptional<z.ZodString>;
494
505
  pageNumber: z.ZodOptional<z.ZodNumber>;
495
506
  sectionRef: z.ZodOptional<z.ZodString>;
507
+ originalContent: z.ZodOptional<z.ZodString>;
496
508
  }, "strip", z.ZodTypeAny, {
497
509
  name: string;
498
510
  limit: string;
511
+ formNumber?: string | undefined;
499
512
  deductible?: string | undefined;
513
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
514
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
500
515
  pageNumber?: number | undefined;
501
516
  sectionRef?: string | undefined;
517
+ originalContent?: string | undefined;
502
518
  }, {
503
519
  name: string;
504
520
  limit: string;
521
+ formNumber?: string | undefined;
505
522
  deductible?: string | undefined;
523
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
524
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
506
525
  pageNumber?: number | undefined;
507
526
  sectionRef?: string | undefined;
527
+ originalContent?: string | undefined;
508
528
  }>;
509
529
  type Coverage = z.infer<typeof CoverageSchema>;
510
530
  declare const EnrichedCoverageSchema: z.ZodObject<{
@@ -514,8 +534,10 @@ declare const EnrichedCoverageSchema: z.ZodObject<{
514
534
  formEditionDate: z.ZodOptional<z.ZodString>;
515
535
  limit: z.ZodString;
516
536
  limitType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "per_person", "per_accident", "statutory", "blanket", "scheduled"]>>;
537
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
517
538
  deductible: z.ZodOptional<z.ZodString>;
518
539
  deductibleType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "percentage", "waiting_period"]>>;
540
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
519
541
  sir: z.ZodOptional<z.ZodString>;
520
542
  sublimit: z.ZodOptional<z.ZodString>;
521
543
  coinsurance: z.ZodOptional<z.ZodString>;
@@ -527,14 +549,18 @@ declare const EnrichedCoverageSchema: z.ZodObject<{
527
549
  premium: z.ZodOptional<z.ZodString>;
528
550
  pageNumber: z.ZodOptional<z.ZodNumber>;
529
551
  sectionRef: z.ZodOptional<z.ZodString>;
552
+ originalContent: z.ZodOptional<z.ZodString>;
530
553
  }, "strip", z.ZodTypeAny, {
531
554
  name: string;
532
555
  limit: string;
533
556
  included: boolean;
534
557
  formNumber?: string | undefined;
535
558
  deductible?: string | undefined;
559
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
560
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
536
561
  pageNumber?: number | undefined;
537
562
  sectionRef?: string | undefined;
563
+ originalContent?: string | undefined;
538
564
  coverageCode?: string | undefined;
539
565
  formEditionDate?: string | undefined;
540
566
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -553,8 +579,11 @@ declare const EnrichedCoverageSchema: z.ZodObject<{
553
579
  included: boolean;
554
580
  formNumber?: string | undefined;
555
581
  deductible?: string | undefined;
582
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
583
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
556
584
  pageNumber?: number | undefined;
557
585
  sectionRef?: string | undefined;
586
+ originalContent?: string | undefined;
558
587
  coverageCode?: string | undefined;
559
588
  formEditionDate?: string | undefined;
560
589
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -694,10 +723,11 @@ declare const EndorsementSchema: z.ZodObject<{
694
723
  }, "strip", z.ZodTypeAny, {
695
724
  title: string;
696
725
  formNumber: string;
726
+ pageStart: number;
697
727
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
698
728
  content: string;
699
- pageStart: number;
700
729
  editionDate?: string | undefined;
730
+ pageEnd?: number | undefined;
701
731
  effectiveDate?: string | undefined;
702
732
  affectedCoverageParts?: string[] | undefined;
703
733
  namedParties?: {
@@ -716,14 +746,14 @@ declare const EndorsementSchema: z.ZodObject<{
716
746
  }[] | undefined;
717
747
  keyTerms?: string[] | undefined;
718
748
  premiumImpact?: string | undefined;
719
- pageEnd?: number | undefined;
720
749
  }, {
721
750
  title: string;
722
751
  formNumber: string;
752
+ pageStart: number;
723
753
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
724
754
  content: string;
725
- pageStart: number;
726
755
  editionDate?: string | undefined;
756
+ pageEnd?: number | undefined;
727
757
  effectiveDate?: string | undefined;
728
758
  affectedCoverageParts?: string[] | undefined;
729
759
  namedParties?: {
@@ -742,7 +772,6 @@ declare const EndorsementSchema: z.ZodObject<{
742
772
  }[] | undefined;
743
773
  keyTerms?: string[] | undefined;
744
774
  premiumImpact?: string | undefined;
745
- pageEnd?: number | undefined;
746
775
  }>;
747
776
  type Endorsement = z.infer<typeof EndorsementSchema>;
748
777
 
@@ -6153,8 +6182,8 @@ declare const SectionSchema: z.ZodObject<{
6153
6182
  }, "strip", z.ZodTypeAny, {
6154
6183
  type: string;
6155
6184
  title: string;
6156
- content: string;
6157
6185
  pageStart: number;
6186
+ content: string;
6158
6187
  pageEnd?: number | undefined;
6159
6188
  sectionNumber?: string | undefined;
6160
6189
  coverageType?: string | undefined;
@@ -6167,8 +6196,8 @@ declare const SectionSchema: z.ZodObject<{
6167
6196
  }, {
6168
6197
  type: string;
6169
6198
  title: string;
6170
- content: string;
6171
6199
  pageStart: number;
6200
+ content: string;
6172
6201
  pageEnd?: number | undefined;
6173
6202
  sectionNumber?: string | undefined;
6174
6203
  coverageType?: string | undefined;
@@ -6228,21 +6257,33 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6228
6257
  coverages: z.ZodArray<z.ZodObject<{
6229
6258
  name: z.ZodString;
6230
6259
  limit: z.ZodString;
6260
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
6231
6261
  deductible: z.ZodOptional<z.ZodString>;
6262
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
6263
+ formNumber: z.ZodOptional<z.ZodString>;
6232
6264
  pageNumber: z.ZodOptional<z.ZodNumber>;
6233
6265
  sectionRef: z.ZodOptional<z.ZodString>;
6266
+ originalContent: z.ZodOptional<z.ZodString>;
6234
6267
  }, "strip", z.ZodTypeAny, {
6235
6268
  name: string;
6236
6269
  limit: string;
6270
+ formNumber?: string | undefined;
6237
6271
  deductible?: string | undefined;
6272
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6273
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6238
6274
  pageNumber?: number | undefined;
6239
6275
  sectionRef?: string | undefined;
6276
+ originalContent?: string | undefined;
6240
6277
  }, {
6241
6278
  name: string;
6242
6279
  limit: string;
6280
+ formNumber?: string | undefined;
6243
6281
  deductible?: string | undefined;
6282
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6283
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6244
6284
  pageNumber?: number | undefined;
6245
6285
  sectionRef?: string | undefined;
6286
+ originalContent?: string | undefined;
6246
6287
  }>, "many">;
6247
6288
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
6248
6289
  title: z.ZodString;
@@ -6271,8 +6312,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6271
6312
  }, "strip", z.ZodTypeAny, {
6272
6313
  type: string;
6273
6314
  title: string;
6274
- content: string;
6275
6315
  pageStart: number;
6316
+ content: string;
6276
6317
  pageEnd?: number | undefined;
6277
6318
  sectionNumber?: string | undefined;
6278
6319
  coverageType?: string | undefined;
@@ -6285,8 +6326,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6285
6326
  }, {
6286
6327
  type: string;
6287
6328
  title: string;
6288
- content: string;
6289
6329
  pageStart: number;
6330
+ content: string;
6290
6331
  pageEnd?: number | undefined;
6291
6332
  sectionNumber?: string | undefined;
6292
6333
  coverageType?: string | undefined;
@@ -6392,8 +6433,10 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6392
6433
  formEditionDate: z.ZodOptional<z.ZodString>;
6393
6434
  limit: z.ZodString;
6394
6435
  limitType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "per_person", "per_accident", "statutory", "blanket", "scheduled"]>>;
6436
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
6395
6437
  deductible: z.ZodOptional<z.ZodString>;
6396
6438
  deductibleType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "percentage", "waiting_period"]>>;
6439
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
6397
6440
  sir: z.ZodOptional<z.ZodString>;
6398
6441
  sublimit: z.ZodOptional<z.ZodString>;
6399
6442
  coinsurance: z.ZodOptional<z.ZodString>;
@@ -6405,14 +6448,18 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6405
6448
  premium: z.ZodOptional<z.ZodString>;
6406
6449
  pageNumber: z.ZodOptional<z.ZodNumber>;
6407
6450
  sectionRef: z.ZodOptional<z.ZodString>;
6451
+ originalContent: z.ZodOptional<z.ZodString>;
6408
6452
  }, "strip", z.ZodTypeAny, {
6409
6453
  name: string;
6410
6454
  limit: string;
6411
6455
  included: boolean;
6412
6456
  formNumber?: string | undefined;
6413
6457
  deductible?: string | undefined;
6458
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6459
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6414
6460
  pageNumber?: number | undefined;
6415
6461
  sectionRef?: string | undefined;
6462
+ originalContent?: string | undefined;
6416
6463
  coverageCode?: string | undefined;
6417
6464
  formEditionDate?: string | undefined;
6418
6465
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -6431,8 +6478,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6431
6478
  included: boolean;
6432
6479
  formNumber?: string | undefined;
6433
6480
  deductible?: string | undefined;
6481
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6482
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
6434
6483
  pageNumber?: number | undefined;
6435
6484
  sectionRef?: string | undefined;
6485
+ originalContent?: string | undefined;
6436
6486
  coverageCode?: string | undefined;
6437
6487
  formEditionDate?: string | undefined;
6438
6488
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -6515,10 +6565,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6515
6565
  }, "strip", z.ZodTypeAny, {
6516
6566
  title: string;
6517
6567
  formNumber: string;
6568
+ pageStart: number;
6518
6569
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
6519
6570
  content: string;
6520
- pageStart: number;
6521
6571
  editionDate?: string | undefined;
6572
+ pageEnd?: number | undefined;
6522
6573
  effectiveDate?: string | undefined;
6523
6574
  affectedCoverageParts?: string[] | undefined;
6524
6575
  namedParties?: {
@@ -6537,14 +6588,14 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6537
6588
  }[] | undefined;
6538
6589
  keyTerms?: string[] | undefined;
6539
6590
  premiumImpact?: string | undefined;
6540
- pageEnd?: number | undefined;
6541
6591
  }, {
6542
6592
  title: string;
6543
6593
  formNumber: string;
6594
+ pageStart: number;
6544
6595
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
6545
6596
  content: string;
6546
- pageStart: number;
6547
6597
  editionDate?: string | undefined;
6598
+ pageEnd?: number | undefined;
6548
6599
  effectiveDate?: string | undefined;
6549
6600
  affectedCoverageParts?: string[] | undefined;
6550
6601
  namedParties?: {
@@ -6563,7 +6614,6 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6563
6614
  }[] | undefined;
6564
6615
  keyTerms?: string[] | undefined;
6565
6616
  premiumImpact?: string | undefined;
6566
- pageEnd?: number | undefined;
6567
6617
  }>, "many">>;
6568
6618
  exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6569
6619
  name: z.ZodString;
@@ -6954,16 +7004,22 @@ declare const PolicyDocumentSchema: z.ZodObject<{
6954
7004
  editionDate: z.ZodOptional<z.ZodString>;
6955
7005
  title: z.ZodOptional<z.ZodString>;
6956
7006
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
7007
+ pageStart: z.ZodOptional<z.ZodNumber>;
7008
+ pageEnd: z.ZodOptional<z.ZodNumber>;
6957
7009
  }, "strip", z.ZodTypeAny, {
6958
7010
  formNumber: string;
6959
7011
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6960
7012
  title?: string | undefined;
6961
7013
  editionDate?: string | undefined;
7014
+ pageStart?: number | undefined;
7015
+ pageEnd?: number | undefined;
6962
7016
  }, {
6963
7017
  formNumber: string;
6964
7018
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6965
7019
  title?: string | undefined;
6966
7020
  editionDate?: string | undefined;
7021
+ pageStart?: number | undefined;
7022
+ pageEnd?: number | undefined;
6967
7023
  }>, "many">>;
6968
7024
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
6969
7025
  line: z.ZodLiteral<"homeowners">;
@@ -9707,9 +9763,13 @@ declare const PolicyDocumentSchema: z.ZodObject<{
9707
9763
  coverages: {
9708
9764
  name: string;
9709
9765
  limit: string;
9766
+ formNumber?: string | undefined;
9710
9767
  deductible?: string | undefined;
9768
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
9769
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
9711
9770
  pageNumber?: number | undefined;
9712
9771
  sectionRef?: string | undefined;
9772
+ originalContent?: string | undefined;
9713
9773
  }[];
9714
9774
  carrier: string;
9715
9775
  policyNumber: string;
@@ -10327,8 +10387,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10327
10387
  sections?: {
10328
10388
  type: string;
10329
10389
  title: string;
10330
- content: string;
10331
10390
  pageStart: number;
10391
+ content: string;
10332
10392
  pageEnd?: number | undefined;
10333
10393
  sectionNumber?: string | undefined;
10334
10394
  coverageType?: string | undefined;
@@ -10382,8 +10442,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10382
10442
  included: boolean;
10383
10443
  formNumber?: string | undefined;
10384
10444
  deductible?: string | undefined;
10445
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
10446
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
10385
10447
  pageNumber?: number | undefined;
10386
10448
  sectionRef?: string | undefined;
10449
+ originalContent?: string | undefined;
10387
10450
  coverageCode?: string | undefined;
10388
10451
  formEditionDate?: string | undefined;
10389
10452
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -10400,10 +10463,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10400
10463
  endorsements?: {
10401
10464
  title: string;
10402
10465
  formNumber: string;
10466
+ pageStart: number;
10403
10467
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
10404
10468
  content: string;
10405
- pageStart: number;
10406
10469
  editionDate?: string | undefined;
10470
+ pageEnd?: number | undefined;
10407
10471
  effectiveDate?: string | undefined;
10408
10472
  affectedCoverageParts?: string[] | undefined;
10409
10473
  namedParties?: {
@@ -10422,7 +10486,6 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10422
10486
  }[] | undefined;
10423
10487
  keyTerms?: string[] | undefined;
10424
10488
  premiumImpact?: string | undefined;
10425
- pageEnd?: number | undefined;
10426
10489
  }[] | undefined;
10427
10490
  exclusions?: {
10428
10491
  name: string;
@@ -10450,6 +10513,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10450
10513
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
10451
10514
  title?: string | undefined;
10452
10515
  editionDate?: string | undefined;
10516
+ pageStart?: number | undefined;
10517
+ pageEnd?: number | undefined;
10453
10518
  }[] | undefined;
10454
10519
  insurer?: {
10455
10520
  legalName: string;
@@ -10622,9 +10687,13 @@ declare const PolicyDocumentSchema: z.ZodObject<{
10622
10687
  coverages: {
10623
10688
  name: string;
10624
10689
  limit: string;
10690
+ formNumber?: string | undefined;
10625
10691
  deductible?: string | undefined;
10692
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
10693
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
10626
10694
  pageNumber?: number | undefined;
10627
10695
  sectionRef?: string | undefined;
10696
+ originalContent?: string | undefined;
10628
10697
  }[];
10629
10698
  carrier: string;
10630
10699
  policyNumber: string;
@@ -11242,8 +11311,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
11242
11311
  sections?: {
11243
11312
  type: string;
11244
11313
  title: string;
11245
- content: string;
11246
11314
  pageStart: number;
11315
+ content: string;
11247
11316
  pageEnd?: number | undefined;
11248
11317
  sectionNumber?: string | undefined;
11249
11318
  coverageType?: string | undefined;
@@ -11297,8 +11366,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
11297
11366
  included: boolean;
11298
11367
  formNumber?: string | undefined;
11299
11368
  deductible?: string | undefined;
11369
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11370
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11300
11371
  pageNumber?: number | undefined;
11301
11372
  sectionRef?: string | undefined;
11373
+ originalContent?: string | undefined;
11302
11374
  coverageCode?: string | undefined;
11303
11375
  formEditionDate?: string | undefined;
11304
11376
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -11315,10 +11387,11 @@ declare const PolicyDocumentSchema: z.ZodObject<{
11315
11387
  endorsements?: {
11316
11388
  title: string;
11317
11389
  formNumber: string;
11390
+ pageStart: number;
11318
11391
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
11319
11392
  content: string;
11320
- pageStart: number;
11321
11393
  editionDate?: string | undefined;
11394
+ pageEnd?: number | undefined;
11322
11395
  effectiveDate?: string | undefined;
11323
11396
  affectedCoverageParts?: string[] | undefined;
11324
11397
  namedParties?: {
@@ -11337,7 +11410,6 @@ declare const PolicyDocumentSchema: z.ZodObject<{
11337
11410
  }[] | undefined;
11338
11411
  keyTerms?: string[] | undefined;
11339
11412
  premiumImpact?: string | undefined;
11340
- pageEnd?: number | undefined;
11341
11413
  }[] | undefined;
11342
11414
  exclusions?: {
11343
11415
  name: string;
@@ -11365,6 +11437,8 @@ declare const PolicyDocumentSchema: z.ZodObject<{
11365
11437
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
11366
11438
  title?: string | undefined;
11367
11439
  editionDate?: string | undefined;
11440
+ pageStart?: number | undefined;
11441
+ pageEnd?: number | undefined;
11368
11442
  }[] | undefined;
11369
11443
  insurer?: {
11370
11444
  legalName: string;
@@ -11626,21 +11700,33 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11626
11700
  coverages: z.ZodArray<z.ZodObject<{
11627
11701
  name: z.ZodString;
11628
11702
  limit: z.ZodString;
11703
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
11629
11704
  deductible: z.ZodOptional<z.ZodString>;
11705
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
11706
+ formNumber: z.ZodOptional<z.ZodString>;
11630
11707
  pageNumber: z.ZodOptional<z.ZodNumber>;
11631
11708
  sectionRef: z.ZodOptional<z.ZodString>;
11709
+ originalContent: z.ZodOptional<z.ZodString>;
11632
11710
  }, "strip", z.ZodTypeAny, {
11633
11711
  name: string;
11634
11712
  limit: string;
11713
+ formNumber?: string | undefined;
11635
11714
  deductible?: string | undefined;
11715
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11716
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11636
11717
  pageNumber?: number | undefined;
11637
11718
  sectionRef?: string | undefined;
11719
+ originalContent?: string | undefined;
11638
11720
  }, {
11639
11721
  name: string;
11640
11722
  limit: string;
11723
+ formNumber?: string | undefined;
11641
11724
  deductible?: string | undefined;
11725
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11726
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11642
11727
  pageNumber?: number | undefined;
11643
11728
  sectionRef?: string | undefined;
11729
+ originalContent?: string | undefined;
11644
11730
  }>, "many">;
11645
11731
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
11646
11732
  title: z.ZodString;
@@ -11669,8 +11755,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11669
11755
  }, "strip", z.ZodTypeAny, {
11670
11756
  type: string;
11671
11757
  title: string;
11672
- content: string;
11673
11758
  pageStart: number;
11759
+ content: string;
11674
11760
  pageEnd?: number | undefined;
11675
11761
  sectionNumber?: string | undefined;
11676
11762
  coverageType?: string | undefined;
@@ -11683,8 +11769,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11683
11769
  }, {
11684
11770
  type: string;
11685
11771
  title: string;
11686
- content: string;
11687
11772
  pageStart: number;
11773
+ content: string;
11688
11774
  pageEnd?: number | undefined;
11689
11775
  sectionNumber?: string | undefined;
11690
11776
  coverageType?: string | undefined;
@@ -11790,8 +11876,10 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11790
11876
  formEditionDate: z.ZodOptional<z.ZodString>;
11791
11877
  limit: z.ZodString;
11792
11878
  limitType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "per_person", "per_accident", "statutory", "blanket", "scheduled"]>>;
11879
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
11793
11880
  deductible: z.ZodOptional<z.ZodString>;
11794
11881
  deductibleType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "percentage", "waiting_period"]>>;
11882
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
11795
11883
  sir: z.ZodOptional<z.ZodString>;
11796
11884
  sublimit: z.ZodOptional<z.ZodString>;
11797
11885
  coinsurance: z.ZodOptional<z.ZodString>;
@@ -11803,14 +11891,18 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11803
11891
  premium: z.ZodOptional<z.ZodString>;
11804
11892
  pageNumber: z.ZodOptional<z.ZodNumber>;
11805
11893
  sectionRef: z.ZodOptional<z.ZodString>;
11894
+ originalContent: z.ZodOptional<z.ZodString>;
11806
11895
  }, "strip", z.ZodTypeAny, {
11807
11896
  name: string;
11808
11897
  limit: string;
11809
11898
  included: boolean;
11810
11899
  formNumber?: string | undefined;
11811
11900
  deductible?: string | undefined;
11901
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11902
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11812
11903
  pageNumber?: number | undefined;
11813
11904
  sectionRef?: string | undefined;
11905
+ originalContent?: string | undefined;
11814
11906
  coverageCode?: string | undefined;
11815
11907
  formEditionDate?: string | undefined;
11816
11908
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -11829,8 +11921,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11829
11921
  included: boolean;
11830
11922
  formNumber?: string | undefined;
11831
11923
  deductible?: string | undefined;
11924
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11925
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
11832
11926
  pageNumber?: number | undefined;
11833
11927
  sectionRef?: string | undefined;
11928
+ originalContent?: string | undefined;
11834
11929
  coverageCode?: string | undefined;
11835
11930
  formEditionDate?: string | undefined;
11836
11931
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -11913,10 +12008,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11913
12008
  }, "strip", z.ZodTypeAny, {
11914
12009
  title: string;
11915
12010
  formNumber: string;
12011
+ pageStart: number;
11916
12012
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
11917
12013
  content: string;
11918
- pageStart: number;
11919
12014
  editionDate?: string | undefined;
12015
+ pageEnd?: number | undefined;
11920
12016
  effectiveDate?: string | undefined;
11921
12017
  affectedCoverageParts?: string[] | undefined;
11922
12018
  namedParties?: {
@@ -11935,14 +12031,14 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11935
12031
  }[] | undefined;
11936
12032
  keyTerms?: string[] | undefined;
11937
12033
  premiumImpact?: string | undefined;
11938
- pageEnd?: number | undefined;
11939
12034
  }, {
11940
12035
  title: string;
11941
12036
  formNumber: string;
12037
+ pageStart: number;
11942
12038
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
11943
12039
  content: string;
11944
- pageStart: number;
11945
12040
  editionDate?: string | undefined;
12041
+ pageEnd?: number | undefined;
11946
12042
  effectiveDate?: string | undefined;
11947
12043
  affectedCoverageParts?: string[] | undefined;
11948
12044
  namedParties?: {
@@ -11961,7 +12057,6 @@ declare const QuoteDocumentSchema: z.ZodObject<{
11961
12057
  }[] | undefined;
11962
12058
  keyTerms?: string[] | undefined;
11963
12059
  premiumImpact?: string | undefined;
11964
- pageEnd?: number | undefined;
11965
12060
  }>, "many">>;
11966
12061
  exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
11967
12062
  name: z.ZodString;
@@ -12352,16 +12447,22 @@ declare const QuoteDocumentSchema: z.ZodObject<{
12352
12447
  editionDate: z.ZodOptional<z.ZodString>;
12353
12448
  title: z.ZodOptional<z.ZodString>;
12354
12449
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
12450
+ pageStart: z.ZodOptional<z.ZodNumber>;
12451
+ pageEnd: z.ZodOptional<z.ZodNumber>;
12355
12452
  }, "strip", z.ZodTypeAny, {
12356
12453
  formNumber: string;
12357
12454
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
12358
12455
  title?: string | undefined;
12359
12456
  editionDate?: string | undefined;
12457
+ pageStart?: number | undefined;
12458
+ pageEnd?: number | undefined;
12360
12459
  }, {
12361
12460
  formNumber: string;
12362
12461
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
12363
12462
  title?: string | undefined;
12364
12463
  editionDate?: string | undefined;
12464
+ pageStart?: number | undefined;
12465
+ pageEnd?: number | undefined;
12365
12466
  }>, "many">>;
12366
12467
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
12367
12468
  line: z.ZodLiteral<"homeowners">;
@@ -15104,9 +15205,13 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15104
15205
  coverages: {
15105
15206
  name: string;
15106
15207
  limit: string;
15208
+ formNumber?: string | undefined;
15107
15209
  deductible?: string | undefined;
15210
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
15211
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
15108
15212
  pageNumber?: number | undefined;
15109
15213
  sectionRef?: string | undefined;
15214
+ originalContent?: string | undefined;
15110
15215
  }[];
15111
15216
  carrier: string;
15112
15217
  id: string;
@@ -15720,8 +15825,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15720
15825
  sections?: {
15721
15826
  type: string;
15722
15827
  title: string;
15723
- content: string;
15724
15828
  pageStart: number;
15829
+ content: string;
15725
15830
  pageEnd?: number | undefined;
15726
15831
  sectionNumber?: string | undefined;
15727
15832
  coverageType?: string | undefined;
@@ -15775,8 +15880,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15775
15880
  included: boolean;
15776
15881
  formNumber?: string | undefined;
15777
15882
  deductible?: string | undefined;
15883
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
15884
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
15778
15885
  pageNumber?: number | undefined;
15779
15886
  sectionRef?: string | undefined;
15887
+ originalContent?: string | undefined;
15780
15888
  coverageCode?: string | undefined;
15781
15889
  formEditionDate?: string | undefined;
15782
15890
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -15793,10 +15901,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15793
15901
  endorsements?: {
15794
15902
  title: string;
15795
15903
  formNumber: string;
15904
+ pageStart: number;
15796
15905
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
15797
15906
  content: string;
15798
- pageStart: number;
15799
15907
  editionDate?: string | undefined;
15908
+ pageEnd?: number | undefined;
15800
15909
  effectiveDate?: string | undefined;
15801
15910
  affectedCoverageParts?: string[] | undefined;
15802
15911
  namedParties?: {
@@ -15815,7 +15924,6 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15815
15924
  }[] | undefined;
15816
15925
  keyTerms?: string[] | undefined;
15817
15926
  premiumImpact?: string | undefined;
15818
- pageEnd?: number | undefined;
15819
15927
  }[] | undefined;
15820
15928
  exclusions?: {
15821
15929
  name: string;
@@ -15843,6 +15951,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
15843
15951
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
15844
15952
  title?: string | undefined;
15845
15953
  editionDate?: string | undefined;
15954
+ pageStart?: number | undefined;
15955
+ pageEnd?: number | undefined;
15846
15956
  }[] | undefined;
15847
15957
  insurer?: {
15848
15958
  legalName: string;
@@ -16048,9 +16158,13 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16048
16158
  coverages: {
16049
16159
  name: string;
16050
16160
  limit: string;
16161
+ formNumber?: string | undefined;
16051
16162
  deductible?: string | undefined;
16163
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
16164
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
16052
16165
  pageNumber?: number | undefined;
16053
16166
  sectionRef?: string | undefined;
16167
+ originalContent?: string | undefined;
16054
16168
  }[];
16055
16169
  carrier: string;
16056
16170
  id: string;
@@ -16664,8 +16778,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16664
16778
  sections?: {
16665
16779
  type: string;
16666
16780
  title: string;
16667
- content: string;
16668
16781
  pageStart: number;
16782
+ content: string;
16669
16783
  pageEnd?: number | undefined;
16670
16784
  sectionNumber?: string | undefined;
16671
16785
  coverageType?: string | undefined;
@@ -16719,8 +16833,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16719
16833
  included: boolean;
16720
16834
  formNumber?: string | undefined;
16721
16835
  deductible?: string | undefined;
16836
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
16837
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
16722
16838
  pageNumber?: number | undefined;
16723
16839
  sectionRef?: string | undefined;
16840
+ originalContent?: string | undefined;
16724
16841
  coverageCode?: string | undefined;
16725
16842
  formEditionDate?: string | undefined;
16726
16843
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -16737,10 +16854,11 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16737
16854
  endorsements?: {
16738
16855
  title: string;
16739
16856
  formNumber: string;
16857
+ pageStart: number;
16740
16858
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
16741
16859
  content: string;
16742
- pageStart: number;
16743
16860
  editionDate?: string | undefined;
16861
+ pageEnd?: number | undefined;
16744
16862
  effectiveDate?: string | undefined;
16745
16863
  affectedCoverageParts?: string[] | undefined;
16746
16864
  namedParties?: {
@@ -16759,7 +16877,6 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16759
16877
  }[] | undefined;
16760
16878
  keyTerms?: string[] | undefined;
16761
16879
  premiumImpact?: string | undefined;
16762
- pageEnd?: number | undefined;
16763
16880
  }[] | undefined;
16764
16881
  exclusions?: {
16765
16882
  name: string;
@@ -16787,6 +16904,8 @@ declare const QuoteDocumentSchema: z.ZodObject<{
16787
16904
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
16788
16905
  title?: string | undefined;
16789
16906
  editionDate?: string | undefined;
16907
+ pageStart?: number | undefined;
16908
+ pageEnd?: number | undefined;
16790
16909
  }[] | undefined;
16791
16910
  insurer?: {
16792
16911
  legalName: string;
@@ -17007,21 +17126,33 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17007
17126
  coverages: z.ZodArray<z.ZodObject<{
17008
17127
  name: z.ZodString;
17009
17128
  limit: z.ZodString;
17129
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
17010
17130
  deductible: z.ZodOptional<z.ZodString>;
17131
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
17132
+ formNumber: z.ZodOptional<z.ZodString>;
17011
17133
  pageNumber: z.ZodOptional<z.ZodNumber>;
17012
17134
  sectionRef: z.ZodOptional<z.ZodString>;
17135
+ originalContent: z.ZodOptional<z.ZodString>;
17013
17136
  }, "strip", z.ZodTypeAny, {
17014
17137
  name: string;
17015
17138
  limit: string;
17139
+ formNumber?: string | undefined;
17016
17140
  deductible?: string | undefined;
17141
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17142
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17017
17143
  pageNumber?: number | undefined;
17018
17144
  sectionRef?: string | undefined;
17145
+ originalContent?: string | undefined;
17019
17146
  }, {
17020
17147
  name: string;
17021
17148
  limit: string;
17149
+ formNumber?: string | undefined;
17022
17150
  deductible?: string | undefined;
17151
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17152
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17023
17153
  pageNumber?: number | undefined;
17024
17154
  sectionRef?: string | undefined;
17155
+ originalContent?: string | undefined;
17025
17156
  }>, "many">;
17026
17157
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
17027
17158
  title: z.ZodString;
@@ -17050,8 +17181,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17050
17181
  }, "strip", z.ZodTypeAny, {
17051
17182
  type: string;
17052
17183
  title: string;
17053
- content: string;
17054
17184
  pageStart: number;
17185
+ content: string;
17055
17186
  pageEnd?: number | undefined;
17056
17187
  sectionNumber?: string | undefined;
17057
17188
  coverageType?: string | undefined;
@@ -17064,8 +17195,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17064
17195
  }, {
17065
17196
  type: string;
17066
17197
  title: string;
17067
- content: string;
17068
17198
  pageStart: number;
17199
+ content: string;
17069
17200
  pageEnd?: number | undefined;
17070
17201
  sectionNumber?: string | undefined;
17071
17202
  coverageType?: string | undefined;
@@ -17171,8 +17302,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17171
17302
  formEditionDate: z.ZodOptional<z.ZodString>;
17172
17303
  limit: z.ZodString;
17173
17304
  limitType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "per_person", "per_accident", "statutory", "blanket", "scheduled"]>>;
17305
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
17174
17306
  deductible: z.ZodOptional<z.ZodString>;
17175
17307
  deductibleType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "percentage", "waiting_period"]>>;
17308
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
17176
17309
  sir: z.ZodOptional<z.ZodString>;
17177
17310
  sublimit: z.ZodOptional<z.ZodString>;
17178
17311
  coinsurance: z.ZodOptional<z.ZodString>;
@@ -17184,14 +17317,18 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17184
17317
  premium: z.ZodOptional<z.ZodString>;
17185
17318
  pageNumber: z.ZodOptional<z.ZodNumber>;
17186
17319
  sectionRef: z.ZodOptional<z.ZodString>;
17320
+ originalContent: z.ZodOptional<z.ZodString>;
17187
17321
  }, "strip", z.ZodTypeAny, {
17188
17322
  name: string;
17189
17323
  limit: string;
17190
17324
  included: boolean;
17191
17325
  formNumber?: string | undefined;
17192
17326
  deductible?: string | undefined;
17327
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17328
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17193
17329
  pageNumber?: number | undefined;
17194
17330
  sectionRef?: string | undefined;
17331
+ originalContent?: string | undefined;
17195
17332
  coverageCode?: string | undefined;
17196
17333
  formEditionDate?: string | undefined;
17197
17334
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -17210,8 +17347,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17210
17347
  included: boolean;
17211
17348
  formNumber?: string | undefined;
17212
17349
  deductible?: string | undefined;
17350
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17351
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
17213
17352
  pageNumber?: number | undefined;
17214
17353
  sectionRef?: string | undefined;
17354
+ originalContent?: string | undefined;
17215
17355
  coverageCode?: string | undefined;
17216
17356
  formEditionDate?: string | undefined;
17217
17357
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -17294,10 +17434,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17294
17434
  }, "strip", z.ZodTypeAny, {
17295
17435
  title: string;
17296
17436
  formNumber: string;
17437
+ pageStart: number;
17297
17438
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
17298
17439
  content: string;
17299
- pageStart: number;
17300
17440
  editionDate?: string | undefined;
17441
+ pageEnd?: number | undefined;
17301
17442
  effectiveDate?: string | undefined;
17302
17443
  affectedCoverageParts?: string[] | undefined;
17303
17444
  namedParties?: {
@@ -17316,14 +17457,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17316
17457
  }[] | undefined;
17317
17458
  keyTerms?: string[] | undefined;
17318
17459
  premiumImpact?: string | undefined;
17319
- pageEnd?: number | undefined;
17320
17460
  }, {
17321
17461
  title: string;
17322
17462
  formNumber: string;
17463
+ pageStart: number;
17323
17464
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
17324
17465
  content: string;
17325
- pageStart: number;
17326
17466
  editionDate?: string | undefined;
17467
+ pageEnd?: number | undefined;
17327
17468
  effectiveDate?: string | undefined;
17328
17469
  affectedCoverageParts?: string[] | undefined;
17329
17470
  namedParties?: {
@@ -17342,7 +17483,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17342
17483
  }[] | undefined;
17343
17484
  keyTerms?: string[] | undefined;
17344
17485
  premiumImpact?: string | undefined;
17345
- pageEnd?: number | undefined;
17346
17486
  }>, "many">>;
17347
17487
  exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
17348
17488
  name: z.ZodString;
@@ -17733,16 +17873,22 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
17733
17873
  editionDate: z.ZodOptional<z.ZodString>;
17734
17874
  title: z.ZodOptional<z.ZodString>;
17735
17875
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
17876
+ pageStart: z.ZodOptional<z.ZodNumber>;
17877
+ pageEnd: z.ZodOptional<z.ZodNumber>;
17736
17878
  }, "strip", z.ZodTypeAny, {
17737
17879
  formNumber: string;
17738
17880
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
17739
17881
  title?: string | undefined;
17740
17882
  editionDate?: string | undefined;
17883
+ pageStart?: number | undefined;
17884
+ pageEnd?: number | undefined;
17741
17885
  }, {
17742
17886
  formNumber: string;
17743
17887
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
17744
17888
  title?: string | undefined;
17745
17889
  editionDate?: string | undefined;
17890
+ pageStart?: number | undefined;
17891
+ pageEnd?: number | undefined;
17746
17892
  }>, "many">>;
17747
17893
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
17748
17894
  line: z.ZodLiteral<"homeowners">;
@@ -20486,9 +20632,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
20486
20632
  coverages: {
20487
20633
  name: string;
20488
20634
  limit: string;
20635
+ formNumber?: string | undefined;
20489
20636
  deductible?: string | undefined;
20637
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
20638
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
20490
20639
  pageNumber?: number | undefined;
20491
20640
  sectionRef?: string | undefined;
20641
+ originalContent?: string | undefined;
20492
20642
  }[];
20493
20643
  carrier: string;
20494
20644
  policyNumber: string;
@@ -21106,8 +21256,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21106
21256
  sections?: {
21107
21257
  type: string;
21108
21258
  title: string;
21109
- content: string;
21110
21259
  pageStart: number;
21260
+ content: string;
21111
21261
  pageEnd?: number | undefined;
21112
21262
  sectionNumber?: string | undefined;
21113
21263
  coverageType?: string | undefined;
@@ -21161,8 +21311,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21161
21311
  included: boolean;
21162
21312
  formNumber?: string | undefined;
21163
21313
  deductible?: string | undefined;
21314
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
21315
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
21164
21316
  pageNumber?: number | undefined;
21165
21317
  sectionRef?: string | undefined;
21318
+ originalContent?: string | undefined;
21166
21319
  coverageCode?: string | undefined;
21167
21320
  formEditionDate?: string | undefined;
21168
21321
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -21179,10 +21332,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21179
21332
  endorsements?: {
21180
21333
  title: string;
21181
21334
  formNumber: string;
21335
+ pageStart: number;
21182
21336
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
21183
21337
  content: string;
21184
- pageStart: number;
21185
21338
  editionDate?: string | undefined;
21339
+ pageEnd?: number | undefined;
21186
21340
  effectiveDate?: string | undefined;
21187
21341
  affectedCoverageParts?: string[] | undefined;
21188
21342
  namedParties?: {
@@ -21201,7 +21355,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21201
21355
  }[] | undefined;
21202
21356
  keyTerms?: string[] | undefined;
21203
21357
  premiumImpact?: string | undefined;
21204
- pageEnd?: number | undefined;
21205
21358
  }[] | undefined;
21206
21359
  exclusions?: {
21207
21360
  name: string;
@@ -21229,6 +21382,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21229
21382
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
21230
21383
  title?: string | undefined;
21231
21384
  editionDate?: string | undefined;
21385
+ pageStart?: number | undefined;
21386
+ pageEnd?: number | undefined;
21232
21387
  }[] | undefined;
21233
21388
  insurer?: {
21234
21389
  legalName: string;
@@ -21401,9 +21556,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
21401
21556
  coverages: {
21402
21557
  name: string;
21403
21558
  limit: string;
21559
+ formNumber?: string | undefined;
21404
21560
  deductible?: string | undefined;
21561
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
21562
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
21405
21563
  pageNumber?: number | undefined;
21406
21564
  sectionRef?: string | undefined;
21565
+ originalContent?: string | undefined;
21407
21566
  }[];
21408
21567
  carrier: string;
21409
21568
  policyNumber: string;
@@ -22021,8 +22180,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22021
22180
  sections?: {
22022
22181
  type: string;
22023
22182
  title: string;
22024
- content: string;
22025
22183
  pageStart: number;
22184
+ content: string;
22026
22185
  pageEnd?: number | undefined;
22027
22186
  sectionNumber?: string | undefined;
22028
22187
  coverageType?: string | undefined;
@@ -22076,8 +22235,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22076
22235
  included: boolean;
22077
22236
  formNumber?: string | undefined;
22078
22237
  deductible?: string | undefined;
22238
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22239
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22079
22240
  pageNumber?: number | undefined;
22080
22241
  sectionRef?: string | undefined;
22242
+ originalContent?: string | undefined;
22081
22243
  coverageCode?: string | undefined;
22082
22244
  formEditionDate?: string | undefined;
22083
22245
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -22094,10 +22256,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22094
22256
  endorsements?: {
22095
22257
  title: string;
22096
22258
  formNumber: string;
22259
+ pageStart: number;
22097
22260
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
22098
22261
  content: string;
22099
- pageStart: number;
22100
22262
  editionDate?: string | undefined;
22263
+ pageEnd?: number | undefined;
22101
22264
  effectiveDate?: string | undefined;
22102
22265
  affectedCoverageParts?: string[] | undefined;
22103
22266
  namedParties?: {
@@ -22116,7 +22279,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22116
22279
  }[] | undefined;
22117
22280
  keyTerms?: string[] | undefined;
22118
22281
  premiumImpact?: string | undefined;
22119
- pageEnd?: number | undefined;
22120
22282
  }[] | undefined;
22121
22283
  exclusions?: {
22122
22284
  name: string;
@@ -22144,6 +22306,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22144
22306
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
22145
22307
  title?: string | undefined;
22146
22308
  editionDate?: string | undefined;
22309
+ pageStart?: number | undefined;
22310
+ pageEnd?: number | undefined;
22147
22311
  }[] | undefined;
22148
22312
  insurer?: {
22149
22313
  legalName: string;
@@ -22403,21 +22567,33 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22403
22567
  coverages: z.ZodArray<z.ZodObject<{
22404
22568
  name: z.ZodString;
22405
22569
  limit: z.ZodString;
22570
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
22406
22571
  deductible: z.ZodOptional<z.ZodString>;
22572
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
22573
+ formNumber: z.ZodOptional<z.ZodString>;
22407
22574
  pageNumber: z.ZodOptional<z.ZodNumber>;
22408
22575
  sectionRef: z.ZodOptional<z.ZodString>;
22576
+ originalContent: z.ZodOptional<z.ZodString>;
22409
22577
  }, "strip", z.ZodTypeAny, {
22410
22578
  name: string;
22411
22579
  limit: string;
22580
+ formNumber?: string | undefined;
22412
22581
  deductible?: string | undefined;
22582
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22583
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22413
22584
  pageNumber?: number | undefined;
22414
22585
  sectionRef?: string | undefined;
22586
+ originalContent?: string | undefined;
22415
22587
  }, {
22416
22588
  name: string;
22417
22589
  limit: string;
22590
+ formNumber?: string | undefined;
22418
22591
  deductible?: string | undefined;
22592
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22593
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22419
22594
  pageNumber?: number | undefined;
22420
22595
  sectionRef?: string | undefined;
22596
+ originalContent?: string | undefined;
22421
22597
  }>, "many">;
22422
22598
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
22423
22599
  title: z.ZodString;
@@ -22446,8 +22622,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22446
22622
  }, "strip", z.ZodTypeAny, {
22447
22623
  type: string;
22448
22624
  title: string;
22449
- content: string;
22450
22625
  pageStart: number;
22626
+ content: string;
22451
22627
  pageEnd?: number | undefined;
22452
22628
  sectionNumber?: string | undefined;
22453
22629
  coverageType?: string | undefined;
@@ -22460,8 +22636,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22460
22636
  }, {
22461
22637
  type: string;
22462
22638
  title: string;
22463
- content: string;
22464
22639
  pageStart: number;
22640
+ content: string;
22465
22641
  pageEnd?: number | undefined;
22466
22642
  sectionNumber?: string | undefined;
22467
22643
  coverageType?: string | undefined;
@@ -22567,8 +22743,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22567
22743
  formEditionDate: z.ZodOptional<z.ZodString>;
22568
22744
  limit: z.ZodString;
22569
22745
  limitType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "per_person", "per_accident", "statutory", "blanket", "scheduled"]>>;
22746
+ limitValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
22570
22747
  deductible: z.ZodOptional<z.ZodString>;
22571
22748
  deductibleType: z.ZodOptional<z.ZodEnum<["per_occurrence", "per_claim", "aggregate", "percentage", "waiting_period"]>>;
22749
+ deductibleValueType: z.ZodOptional<z.ZodEnum<["numeric", "included", "not_included", "as_stated", "waiting_period", "referential", "other"]>>;
22572
22750
  sir: z.ZodOptional<z.ZodString>;
22573
22751
  sublimit: z.ZodOptional<z.ZodString>;
22574
22752
  coinsurance: z.ZodOptional<z.ZodString>;
@@ -22580,14 +22758,18 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22580
22758
  premium: z.ZodOptional<z.ZodString>;
22581
22759
  pageNumber: z.ZodOptional<z.ZodNumber>;
22582
22760
  sectionRef: z.ZodOptional<z.ZodString>;
22761
+ originalContent: z.ZodOptional<z.ZodString>;
22583
22762
  }, "strip", z.ZodTypeAny, {
22584
22763
  name: string;
22585
22764
  limit: string;
22586
22765
  included: boolean;
22587
22766
  formNumber?: string | undefined;
22588
22767
  deductible?: string | undefined;
22768
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22769
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22589
22770
  pageNumber?: number | undefined;
22590
22771
  sectionRef?: string | undefined;
22772
+ originalContent?: string | undefined;
22591
22773
  coverageCode?: string | undefined;
22592
22774
  formEditionDate?: string | undefined;
22593
22775
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -22606,8 +22788,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22606
22788
  included: boolean;
22607
22789
  formNumber?: string | undefined;
22608
22790
  deductible?: string | undefined;
22791
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22792
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
22609
22793
  pageNumber?: number | undefined;
22610
22794
  sectionRef?: string | undefined;
22795
+ originalContent?: string | undefined;
22611
22796
  coverageCode?: string | undefined;
22612
22797
  formEditionDate?: string | undefined;
22613
22798
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -22690,10 +22875,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22690
22875
  }, "strip", z.ZodTypeAny, {
22691
22876
  title: string;
22692
22877
  formNumber: string;
22878
+ pageStart: number;
22693
22879
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
22694
22880
  content: string;
22695
- pageStart: number;
22696
22881
  editionDate?: string | undefined;
22882
+ pageEnd?: number | undefined;
22697
22883
  effectiveDate?: string | undefined;
22698
22884
  affectedCoverageParts?: string[] | undefined;
22699
22885
  namedParties?: {
@@ -22712,14 +22898,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22712
22898
  }[] | undefined;
22713
22899
  keyTerms?: string[] | undefined;
22714
22900
  premiumImpact?: string | undefined;
22715
- pageEnd?: number | undefined;
22716
22901
  }, {
22717
22902
  title: string;
22718
22903
  formNumber: string;
22904
+ pageStart: number;
22719
22905
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
22720
22906
  content: string;
22721
- pageStart: number;
22722
22907
  editionDate?: string | undefined;
22908
+ pageEnd?: number | undefined;
22723
22909
  effectiveDate?: string | undefined;
22724
22910
  affectedCoverageParts?: string[] | undefined;
22725
22911
  namedParties?: {
@@ -22738,7 +22924,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
22738
22924
  }[] | undefined;
22739
22925
  keyTerms?: string[] | undefined;
22740
22926
  premiumImpact?: string | undefined;
22741
- pageEnd?: number | undefined;
22742
22927
  }>, "many">>;
22743
22928
  exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
22744
22929
  name: z.ZodString;
@@ -23129,16 +23314,22 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
23129
23314
  editionDate: z.ZodOptional<z.ZodString>;
23130
23315
  title: z.ZodOptional<z.ZodString>;
23131
23316
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
23317
+ pageStart: z.ZodOptional<z.ZodNumber>;
23318
+ pageEnd: z.ZodOptional<z.ZodNumber>;
23132
23319
  }, "strip", z.ZodTypeAny, {
23133
23320
  formNumber: string;
23134
23321
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
23135
23322
  title?: string | undefined;
23136
23323
  editionDate?: string | undefined;
23324
+ pageStart?: number | undefined;
23325
+ pageEnd?: number | undefined;
23137
23326
  }, {
23138
23327
  formNumber: string;
23139
23328
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
23140
23329
  title?: string | undefined;
23141
23330
  editionDate?: string | undefined;
23331
+ pageStart?: number | undefined;
23332
+ pageEnd?: number | undefined;
23142
23333
  }>, "many">>;
23143
23334
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
23144
23335
  line: z.ZodLiteral<"homeowners">;
@@ -25881,9 +26072,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
25881
26072
  coverages: {
25882
26073
  name: string;
25883
26074
  limit: string;
26075
+ formNumber?: string | undefined;
25884
26076
  deductible?: string | undefined;
26077
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
26078
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
25885
26079
  pageNumber?: number | undefined;
25886
26080
  sectionRef?: string | undefined;
26081
+ originalContent?: string | undefined;
25887
26082
  }[];
25888
26083
  carrier: string;
25889
26084
  id: string;
@@ -26497,8 +26692,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26497
26692
  sections?: {
26498
26693
  type: string;
26499
26694
  title: string;
26500
- content: string;
26501
26695
  pageStart: number;
26696
+ content: string;
26502
26697
  pageEnd?: number | undefined;
26503
26698
  sectionNumber?: string | undefined;
26504
26699
  coverageType?: string | undefined;
@@ -26552,8 +26747,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26552
26747
  included: boolean;
26553
26748
  formNumber?: string | undefined;
26554
26749
  deductible?: string | undefined;
26750
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
26751
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
26555
26752
  pageNumber?: number | undefined;
26556
26753
  sectionRef?: string | undefined;
26754
+ originalContent?: string | undefined;
26557
26755
  coverageCode?: string | undefined;
26558
26756
  formEditionDate?: string | undefined;
26559
26757
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -26570,10 +26768,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26570
26768
  endorsements?: {
26571
26769
  title: string;
26572
26770
  formNumber: string;
26771
+ pageStart: number;
26573
26772
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
26574
26773
  content: string;
26575
- pageStart: number;
26576
26774
  editionDate?: string | undefined;
26775
+ pageEnd?: number | undefined;
26577
26776
  effectiveDate?: string | undefined;
26578
26777
  affectedCoverageParts?: string[] | undefined;
26579
26778
  namedParties?: {
@@ -26592,7 +26791,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26592
26791
  }[] | undefined;
26593
26792
  keyTerms?: string[] | undefined;
26594
26793
  premiumImpact?: string | undefined;
26595
- pageEnd?: number | undefined;
26596
26794
  }[] | undefined;
26597
26795
  exclusions?: {
26598
26796
  name: string;
@@ -26620,6 +26818,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26620
26818
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
26621
26819
  title?: string | undefined;
26622
26820
  editionDate?: string | undefined;
26821
+ pageStart?: number | undefined;
26822
+ pageEnd?: number | undefined;
26623
26823
  }[] | undefined;
26624
26824
  insurer?: {
26625
26825
  legalName: string;
@@ -26825,9 +27025,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
26825
27025
  coverages: {
26826
27026
  name: string;
26827
27027
  limit: string;
27028
+ formNumber?: string | undefined;
26828
27029
  deductible?: string | undefined;
27030
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
27031
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
26829
27032
  pageNumber?: number | undefined;
26830
27033
  sectionRef?: string | undefined;
27034
+ originalContent?: string | undefined;
26831
27035
  }[];
26832
27036
  carrier: string;
26833
27037
  id: string;
@@ -27441,8 +27645,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
27441
27645
  sections?: {
27442
27646
  type: string;
27443
27647
  title: string;
27444
- content: string;
27445
27648
  pageStart: number;
27649
+ content: string;
27446
27650
  pageEnd?: number | undefined;
27447
27651
  sectionNumber?: string | undefined;
27448
27652
  coverageType?: string | undefined;
@@ -27496,8 +27700,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
27496
27700
  included: boolean;
27497
27701
  formNumber?: string | undefined;
27498
27702
  deductible?: string | undefined;
27703
+ limitValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
27704
+ deductibleValueType?: "other" | "waiting_period" | "numeric" | "included" | "not_included" | "as_stated" | "referential" | undefined;
27499
27705
  pageNumber?: number | undefined;
27500
27706
  sectionRef?: string | undefined;
27707
+ originalContent?: string | undefined;
27501
27708
  coverageCode?: string | undefined;
27502
27709
  formEditionDate?: string | undefined;
27503
27710
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -27514,10 +27721,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
27514
27721
  endorsements?: {
27515
27722
  title: string;
27516
27723
  formNumber: string;
27724
+ pageStart: number;
27517
27725
  endorsementType: "other" | "additional_insured" | "waiver_of_subrogation" | "primary_noncontributory" | "blanket_additional_insured" | "loss_payee" | "mortgage_holder" | "broadening" | "restriction" | "exclusion" | "amendatory" | "notice_of_cancellation" | "designated_premises" | "classification_change" | "schedule_update" | "deductible_change" | "limit_change" | "territorial_extension";
27518
27726
  content: string;
27519
- pageStart: number;
27520
27727
  editionDate?: string | undefined;
27728
+ pageEnd?: number | undefined;
27521
27729
  effectiveDate?: string | undefined;
27522
27730
  affectedCoverageParts?: string[] | undefined;
27523
27731
  namedParties?: {
@@ -27536,7 +27744,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
27536
27744
  }[] | undefined;
27537
27745
  keyTerms?: string[] | undefined;
27538
27746
  premiumImpact?: string | undefined;
27539
- pageEnd?: number | undefined;
27540
27747
  }[] | undefined;
27541
27748
  exclusions?: {
27542
27749
  name: string;
@@ -27564,6 +27771,8 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
27564
27771
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
27565
27772
  title?: string | undefined;
27566
27773
  editionDate?: string | undefined;
27774
+ pageStart?: number | undefined;
27775
+ pageEnd?: number | undefined;
27567
27776
  }[] | undefined;
27568
27777
  insurer?: {
27569
27778
  legalName: string;
@@ -27807,6 +28016,32 @@ interface ContextKeyMapping {
27807
28016
  }
27808
28017
  declare const CONTEXT_KEY_MAP: ContextKeyMapping[];
27809
28018
 
28019
+ type QualitySeverity = "info" | "warning" | "blocking";
28020
+ type QualityGateStatus = "passed" | "warning" | "failed";
28021
+ type QualityGateMode = "off" | "warn" | "strict";
28022
+ interface BaseQualityIssue {
28023
+ code: string;
28024
+ severity: QualitySeverity;
28025
+ message: string;
28026
+ }
28027
+ interface QualityRound {
28028
+ round: number;
28029
+ kind: string;
28030
+ status: "passed" | "warning" | "failed";
28031
+ summary?: string;
28032
+ }
28033
+ interface QualityArtifact {
28034
+ kind: string;
28035
+ label?: string;
28036
+ itemCount?: number;
28037
+ }
28038
+ interface UnifiedQualityReport<TIssue extends BaseQualityIssue = BaseQualityIssue> {
28039
+ issues: TIssue[];
28040
+ rounds: QualityRound[];
28041
+ artifacts: QualityArtifact[];
28042
+ qualityGateStatus: QualityGateStatus;
28043
+ }
28044
+
27810
28045
  interface DocumentChunk {
27811
28046
  /** Deterministic ID: `${documentId}:${type}:${index}` */
27812
28047
  id: string;
@@ -27908,31 +28143,116 @@ declare const ExtractionPlanSchema: z.ZodObject<{
27908
28143
  }>;
27909
28144
  type ExtractionPlan = z.infer<typeof ExtractionPlanSchema>;
27910
28145
 
28146
+ declare const FormInventorySchema: z.ZodObject<{
28147
+ forms: z.ZodArray<z.ZodObject<{
28148
+ editionDate: z.ZodOptional<z.ZodString>;
28149
+ title: z.ZodOptional<z.ZodString>;
28150
+ formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
28151
+ } & {
28152
+ formNumber: z.ZodString;
28153
+ pageStart: z.ZodOptional<z.ZodNumber>;
28154
+ pageEnd: z.ZodOptional<z.ZodNumber>;
28155
+ }, "strip", z.ZodTypeAny, {
28156
+ formNumber: string;
28157
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
28158
+ title?: string | undefined;
28159
+ editionDate?: string | undefined;
28160
+ pageStart?: number | undefined;
28161
+ pageEnd?: number | undefined;
28162
+ }, {
28163
+ formNumber: string;
28164
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
28165
+ title?: string | undefined;
28166
+ editionDate?: string | undefined;
28167
+ pageStart?: number | undefined;
28168
+ pageEnd?: number | undefined;
28169
+ }>, "many">;
28170
+ }, "strip", z.ZodTypeAny, {
28171
+ forms: {
28172
+ formNumber: string;
28173
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
28174
+ title?: string | undefined;
28175
+ editionDate?: string | undefined;
28176
+ pageStart?: number | undefined;
28177
+ pageEnd?: number | undefined;
28178
+ }[];
28179
+ }, {
28180
+ forms: {
28181
+ formNumber: string;
28182
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
28183
+ title?: string | undefined;
28184
+ editionDate?: string | undefined;
28185
+ pageStart?: number | undefined;
28186
+ pageEnd?: number | undefined;
28187
+ }[];
28188
+ }>;
28189
+ type FormInventoryResult = z.infer<typeof FormInventorySchema>;
28190
+
27911
28191
  declare const PageAssignmentSchema: z.ZodObject<{
27912
28192
  localPageNumber: z.ZodNumber;
27913
28193
  extractorNames: z.ZodArray<z.ZodEnum<["carrier_info", "named_insured", "coverage_limits", "endorsements", "exclusions", "conditions", "premium_breakdown", "declarations", "loss_history", "sections", "supplementary"]>, "many">;
28194
+ pageRole: z.ZodOptional<z.ZodEnum<["declarations_schedule", "endorsement_schedule", "policy_form", "endorsement_form", "condition_exclusion_form", "supplementary", "other"]>>;
28195
+ hasScheduleValues: z.ZodOptional<z.ZodBoolean>;
27914
28196
  confidence: z.ZodOptional<z.ZodNumber>;
27915
28197
  notes: z.ZodOptional<z.ZodString>;
27916
28198
  }, "strip", z.ZodTypeAny, {
27917
28199
  localPageNumber: number;
27918
28200
  extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "premium_breakdown")[];
27919
28201
  confidence?: number | undefined;
28202
+ pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
28203
+ hasScheduleValues?: boolean | undefined;
27920
28204
  notes?: string | undefined;
27921
28205
  }, {
27922
28206
  localPageNumber: number;
27923
28207
  extractorNames: ("declarations" | "supplementary" | "conditions" | "named_insured" | "sections" | "endorsements" | "exclusions" | "loss_history" | "carrier_info" | "coverage_limits" | "premium_breakdown")[];
27924
28208
  confidence?: number | undefined;
28209
+ pageRole?: "other" | "policy_form" | "supplementary" | "declarations_schedule" | "endorsement_schedule" | "endorsement_form" | "condition_exclusion_form" | undefined;
28210
+ hasScheduleValues?: boolean | undefined;
27925
28211
  notes?: string | undefined;
27926
28212
  }>;
27927
28213
  type PageAssignment = z.infer<typeof PageAssignmentSchema>;
27928
28214
 
28215
+ interface FormInventoryEntry {
28216
+ formNumber: string;
28217
+ title?: string;
28218
+ pageStart?: number;
28219
+ pageEnd?: number;
28220
+ sources: string[];
28221
+ }
28222
+ interface QualityIssue extends BaseQualityIssue {
28223
+ message: string;
28224
+ extractorName?: string;
28225
+ pageNumber?: number;
28226
+ formNumber?: string;
28227
+ itemName?: string;
28228
+ }
28229
+ interface ReviewRoundRecord {
28230
+ round: number;
28231
+ complete: boolean;
28232
+ missingFields: string[];
28233
+ qualityIssues: string[];
28234
+ additionalTasks: Array<{
28235
+ extractorName: string;
28236
+ startPage: number;
28237
+ endPage: number;
28238
+ description: string;
28239
+ }>;
28240
+ }
28241
+ interface ExtractionReviewReport extends UnifiedQualityReport<QualityIssue> {
28242
+ reviewRoundRecords: ReviewRoundRecord[];
28243
+ formInventory: FormInventoryEntry[];
28244
+ qualityGateStatus: QualityGateStatus;
28245
+ }
28246
+
27929
28247
  /** Internal state checkpointed between extraction phases. */
27930
28248
  interface ExtractionState {
27931
28249
  id: string;
27932
28250
  pageCount: number;
27933
28251
  classifyResult?: ClassifyResult;
28252
+ formInventory?: FormInventoryResult;
27934
28253
  pageAssignments?: PageAssignment[];
27935
28254
  plan?: ExtractionPlan;
28255
+ reviewReport?: ExtractionReviewReport;
27936
28256
  memory: Record<string, unknown>;
27937
28257
  document?: InsuranceDocument;
27938
28258
  }
@@ -27946,6 +28266,7 @@ interface ExtractorConfig {
27946
28266
  onProgress?: (message: string) => void;
27947
28267
  log?: LogFn;
27948
28268
  providerOptions?: Record<string, unknown>;
28269
+ qualityGate?: QualityGateMode;
27949
28270
  /** Optional checkpoint persistence callback. */
27950
28271
  onCheckpointSave?: (checkpoint: PipelineCheckpoint<ExtractionState>) => Promise<void>;
27951
28272
  }
@@ -27958,6 +28279,7 @@ interface ExtractionResult {
27958
28279
  callsWithUsage: number;
27959
28280
  callsMissingUsage: number;
27960
28281
  };
28282
+ reviewReport: ExtractionReviewReport;
27961
28283
  /** Last checkpoint — can be passed as `resumeFrom` to retry from a failure point. */
27962
28284
  checkpoint?: PipelineCheckpoint<ExtractionState>;
27963
28285
  }
@@ -28086,7 +28408,7 @@ declare const ApplicationFieldSchema: z.ZodObject<{
28086
28408
  id: string;
28087
28409
  section: string;
28088
28410
  label: string;
28089
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28411
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28090
28412
  required: boolean;
28091
28413
  value?: string | undefined;
28092
28414
  options?: string[] | undefined;
@@ -28102,7 +28424,7 @@ declare const ApplicationFieldSchema: z.ZodObject<{
28102
28424
  id: string;
28103
28425
  section: string;
28104
28426
  label: string;
28105
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28427
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28106
28428
  required: boolean;
28107
28429
  value?: string | undefined;
28108
28430
  options?: string[] | undefined;
@@ -28157,7 +28479,7 @@ declare const FieldExtractionResultSchema: z.ZodObject<{
28157
28479
  id: string;
28158
28480
  section: string;
28159
28481
  label: string;
28160
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28482
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28161
28483
  required: boolean;
28162
28484
  value?: string | undefined;
28163
28485
  options?: string[] | undefined;
@@ -28173,7 +28495,7 @@ declare const FieldExtractionResultSchema: z.ZodObject<{
28173
28495
  id: string;
28174
28496
  section: string;
28175
28497
  label: string;
28176
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28498
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28177
28499
  required: boolean;
28178
28500
  value?: string | undefined;
28179
28501
  options?: string[] | undefined;
@@ -28191,7 +28513,7 @@ declare const FieldExtractionResultSchema: z.ZodObject<{
28191
28513
  id: string;
28192
28514
  section: string;
28193
28515
  label: string;
28194
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28516
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28195
28517
  required: boolean;
28196
28518
  value?: string | undefined;
28197
28519
  options?: string[] | undefined;
@@ -28209,7 +28531,7 @@ declare const FieldExtractionResultSchema: z.ZodObject<{
28209
28531
  id: string;
28210
28532
  section: string;
28211
28533
  label: string;
28212
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
28534
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28213
28535
  required: boolean;
28214
28536
  value?: string | undefined;
28215
28537
  options?: string[] | undefined;
@@ -28477,6 +28799,225 @@ declare const AcroFormMappingSchema: z.ZodObject<{
28477
28799
  fieldId: string;
28478
28800
  }>;
28479
28801
  type AcroFormMapping = z.infer<typeof AcroFormMappingSchema>;
28802
+ declare const ApplicationQualityIssueSchema: z.ZodObject<{
28803
+ code: z.ZodString;
28804
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
28805
+ message: z.ZodString;
28806
+ fieldId: z.ZodOptional<z.ZodString>;
28807
+ }, "strip", z.ZodTypeAny, {
28808
+ code: string;
28809
+ message: string;
28810
+ severity: "info" | "warning" | "blocking";
28811
+ fieldId?: string | undefined;
28812
+ }, {
28813
+ code: string;
28814
+ message: string;
28815
+ severity: "info" | "warning" | "blocking";
28816
+ fieldId?: string | undefined;
28817
+ }>;
28818
+ declare const ApplicationQualityRoundSchema: z.ZodObject<{
28819
+ round: z.ZodNumber;
28820
+ kind: z.ZodString;
28821
+ status: z.ZodEnum<["passed", "warning", "failed"]>;
28822
+ summary: z.ZodOptional<z.ZodString>;
28823
+ }, "strip", z.ZodTypeAny, {
28824
+ status: "warning" | "passed" | "failed";
28825
+ round: number;
28826
+ kind: string;
28827
+ summary?: string | undefined;
28828
+ }, {
28829
+ status: "warning" | "passed" | "failed";
28830
+ round: number;
28831
+ kind: string;
28832
+ summary?: string | undefined;
28833
+ }>;
28834
+ declare const ApplicationQualityArtifactSchema: z.ZodObject<{
28835
+ kind: z.ZodString;
28836
+ label: z.ZodOptional<z.ZodString>;
28837
+ itemCount: z.ZodOptional<z.ZodNumber>;
28838
+ }, "strip", z.ZodTypeAny, {
28839
+ kind: string;
28840
+ label?: string | undefined;
28841
+ itemCount?: number | undefined;
28842
+ }, {
28843
+ kind: string;
28844
+ label?: string | undefined;
28845
+ itemCount?: number | undefined;
28846
+ }>;
28847
+ declare const ApplicationEmailReviewSchema: z.ZodObject<{
28848
+ issues: z.ZodArray<z.ZodObject<{
28849
+ code: z.ZodString;
28850
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
28851
+ message: z.ZodString;
28852
+ fieldId: z.ZodOptional<z.ZodString>;
28853
+ }, "strip", z.ZodTypeAny, {
28854
+ code: string;
28855
+ message: string;
28856
+ severity: "info" | "warning" | "blocking";
28857
+ fieldId?: string | undefined;
28858
+ }, {
28859
+ code: string;
28860
+ message: string;
28861
+ severity: "info" | "warning" | "blocking";
28862
+ fieldId?: string | undefined;
28863
+ }>, "many">;
28864
+ qualityGateStatus: z.ZodEnum<["passed", "warning", "failed"]>;
28865
+ }, "strip", z.ZodTypeAny, {
28866
+ issues: {
28867
+ code: string;
28868
+ message: string;
28869
+ severity: "info" | "warning" | "blocking";
28870
+ fieldId?: string | undefined;
28871
+ }[];
28872
+ qualityGateStatus: "warning" | "passed" | "failed";
28873
+ }, {
28874
+ issues: {
28875
+ code: string;
28876
+ message: string;
28877
+ severity: "info" | "warning" | "blocking";
28878
+ fieldId?: string | undefined;
28879
+ }[];
28880
+ qualityGateStatus: "warning" | "passed" | "failed";
28881
+ }>;
28882
+ declare const ApplicationQualityReportSchema: z.ZodObject<{
28883
+ issues: z.ZodArray<z.ZodObject<{
28884
+ code: z.ZodString;
28885
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
28886
+ message: z.ZodString;
28887
+ fieldId: z.ZodOptional<z.ZodString>;
28888
+ }, "strip", z.ZodTypeAny, {
28889
+ code: string;
28890
+ message: string;
28891
+ severity: "info" | "warning" | "blocking";
28892
+ fieldId?: string | undefined;
28893
+ }, {
28894
+ code: string;
28895
+ message: string;
28896
+ severity: "info" | "warning" | "blocking";
28897
+ fieldId?: string | undefined;
28898
+ }>, "many">;
28899
+ rounds: z.ZodOptional<z.ZodArray<z.ZodObject<{
28900
+ round: z.ZodNumber;
28901
+ kind: z.ZodString;
28902
+ status: z.ZodEnum<["passed", "warning", "failed"]>;
28903
+ summary: z.ZodOptional<z.ZodString>;
28904
+ }, "strip", z.ZodTypeAny, {
28905
+ status: "warning" | "passed" | "failed";
28906
+ round: number;
28907
+ kind: string;
28908
+ summary?: string | undefined;
28909
+ }, {
28910
+ status: "warning" | "passed" | "failed";
28911
+ round: number;
28912
+ kind: string;
28913
+ summary?: string | undefined;
28914
+ }>, "many">>;
28915
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
28916
+ kind: z.ZodString;
28917
+ label: z.ZodOptional<z.ZodString>;
28918
+ itemCount: z.ZodOptional<z.ZodNumber>;
28919
+ }, "strip", z.ZodTypeAny, {
28920
+ kind: string;
28921
+ label?: string | undefined;
28922
+ itemCount?: number | undefined;
28923
+ }, {
28924
+ kind: string;
28925
+ label?: string | undefined;
28926
+ itemCount?: number | undefined;
28927
+ }>, "many">>;
28928
+ emailReview: z.ZodOptional<z.ZodObject<{
28929
+ issues: z.ZodArray<z.ZodObject<{
28930
+ code: z.ZodString;
28931
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
28932
+ message: z.ZodString;
28933
+ fieldId: z.ZodOptional<z.ZodString>;
28934
+ }, "strip", z.ZodTypeAny, {
28935
+ code: string;
28936
+ message: string;
28937
+ severity: "info" | "warning" | "blocking";
28938
+ fieldId?: string | undefined;
28939
+ }, {
28940
+ code: string;
28941
+ message: string;
28942
+ severity: "info" | "warning" | "blocking";
28943
+ fieldId?: string | undefined;
28944
+ }>, "many">;
28945
+ qualityGateStatus: z.ZodEnum<["passed", "warning", "failed"]>;
28946
+ }, "strip", z.ZodTypeAny, {
28947
+ issues: {
28948
+ code: string;
28949
+ message: string;
28950
+ severity: "info" | "warning" | "blocking";
28951
+ fieldId?: string | undefined;
28952
+ }[];
28953
+ qualityGateStatus: "warning" | "passed" | "failed";
28954
+ }, {
28955
+ issues: {
28956
+ code: string;
28957
+ message: string;
28958
+ severity: "info" | "warning" | "blocking";
28959
+ fieldId?: string | undefined;
28960
+ }[];
28961
+ qualityGateStatus: "warning" | "passed" | "failed";
28962
+ }>>;
28963
+ qualityGateStatus: z.ZodEnum<["passed", "warning", "failed"]>;
28964
+ }, "strip", z.ZodTypeAny, {
28965
+ issues: {
28966
+ code: string;
28967
+ message: string;
28968
+ severity: "info" | "warning" | "blocking";
28969
+ fieldId?: string | undefined;
28970
+ }[];
28971
+ qualityGateStatus: "warning" | "passed" | "failed";
28972
+ rounds?: {
28973
+ status: "warning" | "passed" | "failed";
28974
+ round: number;
28975
+ kind: string;
28976
+ summary?: string | undefined;
28977
+ }[] | undefined;
28978
+ artifacts?: {
28979
+ kind: string;
28980
+ label?: string | undefined;
28981
+ itemCount?: number | undefined;
28982
+ }[] | undefined;
28983
+ emailReview?: {
28984
+ issues: {
28985
+ code: string;
28986
+ message: string;
28987
+ severity: "info" | "warning" | "blocking";
28988
+ fieldId?: string | undefined;
28989
+ }[];
28990
+ qualityGateStatus: "warning" | "passed" | "failed";
28991
+ } | undefined;
28992
+ }, {
28993
+ issues: {
28994
+ code: string;
28995
+ message: string;
28996
+ severity: "info" | "warning" | "blocking";
28997
+ fieldId?: string | undefined;
28998
+ }[];
28999
+ qualityGateStatus: "warning" | "passed" | "failed";
29000
+ rounds?: {
29001
+ status: "warning" | "passed" | "failed";
29002
+ round: number;
29003
+ kind: string;
29004
+ summary?: string | undefined;
29005
+ }[] | undefined;
29006
+ artifacts?: {
29007
+ kind: string;
29008
+ label?: string | undefined;
29009
+ itemCount?: number | undefined;
29010
+ }[] | undefined;
29011
+ emailReview?: {
29012
+ issues: {
29013
+ code: string;
29014
+ message: string;
29015
+ severity: "info" | "warning" | "blocking";
29016
+ fieldId?: string | undefined;
29017
+ }[];
29018
+ qualityGateStatus: "warning" | "passed" | "failed";
29019
+ } | undefined;
29020
+ }>;
28480
29021
  declare const ApplicationStateSchema: z.ZodObject<{
28481
29022
  id: z.ZodString;
28482
29023
  pdfBase64: z.ZodOptional<z.ZodString>;
@@ -28508,7 +29049,7 @@ declare const ApplicationStateSchema: z.ZodObject<{
28508
29049
  id: string;
28509
29050
  section: string;
28510
29051
  label: string;
28511
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
29052
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28512
29053
  required: boolean;
28513
29054
  value?: string | undefined;
28514
29055
  options?: string[] | undefined;
@@ -28524,7 +29065,7 @@ declare const ApplicationStateSchema: z.ZodObject<{
28524
29065
  id: string;
28525
29066
  section: string;
28526
29067
  label: string;
28527
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
29068
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28528
29069
  required: boolean;
28529
29070
  value?: string | undefined;
28530
29071
  options?: string[] | undefined;
@@ -28539,6 +29080,145 @@ declare const ApplicationStateSchema: z.ZodObject<{
28539
29080
  }>, "many">;
28540
29081
  batches: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
28541
29082
  currentBatchIndex: z.ZodDefault<z.ZodNumber>;
29083
+ qualityReport: z.ZodOptional<z.ZodObject<{
29084
+ issues: z.ZodArray<z.ZodObject<{
29085
+ code: z.ZodString;
29086
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
29087
+ message: z.ZodString;
29088
+ fieldId: z.ZodOptional<z.ZodString>;
29089
+ }, "strip", z.ZodTypeAny, {
29090
+ code: string;
29091
+ message: string;
29092
+ severity: "info" | "warning" | "blocking";
29093
+ fieldId?: string | undefined;
29094
+ }, {
29095
+ code: string;
29096
+ message: string;
29097
+ severity: "info" | "warning" | "blocking";
29098
+ fieldId?: string | undefined;
29099
+ }>, "many">;
29100
+ rounds: z.ZodOptional<z.ZodArray<z.ZodObject<{
29101
+ round: z.ZodNumber;
29102
+ kind: z.ZodString;
29103
+ status: z.ZodEnum<["passed", "warning", "failed"]>;
29104
+ summary: z.ZodOptional<z.ZodString>;
29105
+ }, "strip", z.ZodTypeAny, {
29106
+ status: "warning" | "passed" | "failed";
29107
+ round: number;
29108
+ kind: string;
29109
+ summary?: string | undefined;
29110
+ }, {
29111
+ status: "warning" | "passed" | "failed";
29112
+ round: number;
29113
+ kind: string;
29114
+ summary?: string | undefined;
29115
+ }>, "many">>;
29116
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
29117
+ kind: z.ZodString;
29118
+ label: z.ZodOptional<z.ZodString>;
29119
+ itemCount: z.ZodOptional<z.ZodNumber>;
29120
+ }, "strip", z.ZodTypeAny, {
29121
+ kind: string;
29122
+ label?: string | undefined;
29123
+ itemCount?: number | undefined;
29124
+ }, {
29125
+ kind: string;
29126
+ label?: string | undefined;
29127
+ itemCount?: number | undefined;
29128
+ }>, "many">>;
29129
+ emailReview: z.ZodOptional<z.ZodObject<{
29130
+ issues: z.ZodArray<z.ZodObject<{
29131
+ code: z.ZodString;
29132
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
29133
+ message: z.ZodString;
29134
+ fieldId: z.ZodOptional<z.ZodString>;
29135
+ }, "strip", z.ZodTypeAny, {
29136
+ code: string;
29137
+ message: string;
29138
+ severity: "info" | "warning" | "blocking";
29139
+ fieldId?: string | undefined;
29140
+ }, {
29141
+ code: string;
29142
+ message: string;
29143
+ severity: "info" | "warning" | "blocking";
29144
+ fieldId?: string | undefined;
29145
+ }>, "many">;
29146
+ qualityGateStatus: z.ZodEnum<["passed", "warning", "failed"]>;
29147
+ }, "strip", z.ZodTypeAny, {
29148
+ issues: {
29149
+ code: string;
29150
+ message: string;
29151
+ severity: "info" | "warning" | "blocking";
29152
+ fieldId?: string | undefined;
29153
+ }[];
29154
+ qualityGateStatus: "warning" | "passed" | "failed";
29155
+ }, {
29156
+ issues: {
29157
+ code: string;
29158
+ message: string;
29159
+ severity: "info" | "warning" | "blocking";
29160
+ fieldId?: string | undefined;
29161
+ }[];
29162
+ qualityGateStatus: "warning" | "passed" | "failed";
29163
+ }>>;
29164
+ qualityGateStatus: z.ZodEnum<["passed", "warning", "failed"]>;
29165
+ }, "strip", z.ZodTypeAny, {
29166
+ issues: {
29167
+ code: string;
29168
+ message: string;
29169
+ severity: "info" | "warning" | "blocking";
29170
+ fieldId?: string | undefined;
29171
+ }[];
29172
+ qualityGateStatus: "warning" | "passed" | "failed";
29173
+ rounds?: {
29174
+ status: "warning" | "passed" | "failed";
29175
+ round: number;
29176
+ kind: string;
29177
+ summary?: string | undefined;
29178
+ }[] | undefined;
29179
+ artifacts?: {
29180
+ kind: string;
29181
+ label?: string | undefined;
29182
+ itemCount?: number | undefined;
29183
+ }[] | undefined;
29184
+ emailReview?: {
29185
+ issues: {
29186
+ code: string;
29187
+ message: string;
29188
+ severity: "info" | "warning" | "blocking";
29189
+ fieldId?: string | undefined;
29190
+ }[];
29191
+ qualityGateStatus: "warning" | "passed" | "failed";
29192
+ } | undefined;
29193
+ }, {
29194
+ issues: {
29195
+ code: string;
29196
+ message: string;
29197
+ severity: "info" | "warning" | "blocking";
29198
+ fieldId?: string | undefined;
29199
+ }[];
29200
+ qualityGateStatus: "warning" | "passed" | "failed";
29201
+ rounds?: {
29202
+ status: "warning" | "passed" | "failed";
29203
+ round: number;
29204
+ kind: string;
29205
+ summary?: string | undefined;
29206
+ }[] | undefined;
29207
+ artifacts?: {
29208
+ kind: string;
29209
+ label?: string | undefined;
29210
+ itemCount?: number | undefined;
29211
+ }[] | undefined;
29212
+ emailReview?: {
29213
+ issues: {
29214
+ code: string;
29215
+ message: string;
29216
+ severity: "info" | "warning" | "blocking";
29217
+ fieldId?: string | undefined;
29218
+ }[];
29219
+ qualityGateStatus: "warning" | "passed" | "failed";
29220
+ } | undefined;
29221
+ }>>;
28542
29222
  status: z.ZodEnum<["classifying", "extracting", "auto_filling", "batching", "collecting", "confirming", "mapping", "complete"]>;
28543
29223
  createdAt: z.ZodNumber;
28544
29224
  updatedAt: z.ZodNumber;
@@ -28549,7 +29229,7 @@ declare const ApplicationStateSchema: z.ZodObject<{
28549
29229
  id: string;
28550
29230
  section: string;
28551
29231
  label: string;
28552
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
29232
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28553
29233
  required: boolean;
28554
29234
  value?: string | undefined;
28555
29235
  options?: string[] | undefined;
@@ -28569,6 +29249,35 @@ declare const ApplicationStateSchema: z.ZodObject<{
28569
29249
  pdfBase64?: string | undefined;
28570
29250
  applicationType?: string | null | undefined;
28571
29251
  batches?: string[][] | undefined;
29252
+ qualityReport?: {
29253
+ issues: {
29254
+ code: string;
29255
+ message: string;
29256
+ severity: "info" | "warning" | "blocking";
29257
+ fieldId?: string | undefined;
29258
+ }[];
29259
+ qualityGateStatus: "warning" | "passed" | "failed";
29260
+ rounds?: {
29261
+ status: "warning" | "passed" | "failed";
29262
+ round: number;
29263
+ kind: string;
29264
+ summary?: string | undefined;
29265
+ }[] | undefined;
29266
+ artifacts?: {
29267
+ kind: string;
29268
+ label?: string | undefined;
29269
+ itemCount?: number | undefined;
29270
+ }[] | undefined;
29271
+ emailReview?: {
29272
+ issues: {
29273
+ code: string;
29274
+ message: string;
29275
+ severity: "info" | "warning" | "blocking";
29276
+ fieldId?: string | undefined;
29277
+ }[];
29278
+ qualityGateStatus: "warning" | "passed" | "failed";
29279
+ } | undefined;
29280
+ } | undefined;
28572
29281
  }, {
28573
29282
  status: "complete" | "classifying" | "extracting" | "auto_filling" | "batching" | "collecting" | "confirming" | "mapping";
28574
29283
  id: string;
@@ -28576,7 +29285,7 @@ declare const ApplicationStateSchema: z.ZodObject<{
28576
29285
  id: string;
28577
29286
  section: string;
28578
29287
  label: string;
28579
- fieldType: "date" | "declaration" | "text" | "numeric" | "currency" | "yes_no" | "table";
29288
+ fieldType: "date" | "numeric" | "declaration" | "text" | "currency" | "yes_no" | "table";
28580
29289
  required: boolean;
28581
29290
  value?: string | undefined;
28582
29291
  options?: string[] | undefined;
@@ -28596,6 +29305,35 @@ declare const ApplicationStateSchema: z.ZodObject<{
28596
29305
  applicationType?: string | null | undefined;
28597
29306
  batches?: string[][] | undefined;
28598
29307
  currentBatchIndex?: number | undefined;
29308
+ qualityReport?: {
29309
+ issues: {
29310
+ code: string;
29311
+ message: string;
29312
+ severity: "info" | "warning" | "blocking";
29313
+ fieldId?: string | undefined;
29314
+ }[];
29315
+ qualityGateStatus: "warning" | "passed" | "failed";
29316
+ rounds?: {
29317
+ status: "warning" | "passed" | "failed";
29318
+ round: number;
29319
+ kind: string;
29320
+ summary?: string | undefined;
29321
+ }[] | undefined;
29322
+ artifacts?: {
29323
+ kind: string;
29324
+ label?: string | undefined;
29325
+ itemCount?: number | undefined;
29326
+ }[] | undefined;
29327
+ emailReview?: {
29328
+ issues: {
29329
+ code: string;
29330
+ message: string;
29331
+ severity: "info" | "warning" | "blocking";
29332
+ fieldId?: string | undefined;
29333
+ }[];
29334
+ qualityGateStatus: "warning" | "passed" | "failed";
29335
+ } | undefined;
29336
+ } | undefined;
28599
29337
  }>;
28600
29338
  type ApplicationState = z.infer<typeof ApplicationStateSchema>;
28601
29339
 
@@ -28642,6 +29380,22 @@ interface PriorAnswer {
28642
29380
  relevance: number;
28643
29381
  }
28644
29382
 
29383
+ interface ApplicationQualityIssue extends BaseQualityIssue {
29384
+ message: string;
29385
+ fieldId?: string;
29386
+ }
29387
+ interface ApplicationEmailReview {
29388
+ issues: ApplicationQualityIssue[];
29389
+ qualityGateStatus: QualityGateStatus;
29390
+ }
29391
+ interface ApplicationQualityReport {
29392
+ issues: ApplicationQualityIssue[];
29393
+ rounds?: QualityRound[];
29394
+ artifacts?: QualityArtifact[];
29395
+ emailReview?: ApplicationEmailReview;
29396
+ qualityGateStatus: QualityGateStatus;
29397
+ }
29398
+
28645
29399
  interface ApplicationPipelineConfig {
28646
29400
  generateText: GenerateText;
28647
29401
  generateObject: GenerateObject;
@@ -28665,6 +29419,7 @@ interface ApplicationPipelineConfig {
28665
29419
  onProgress?: (message: string) => void;
28666
29420
  log?: LogFn;
28667
29421
  providerOptions?: Record<string, unknown>;
29422
+ qualityGate?: QualityGateMode;
28668
29423
  }
28669
29424
  interface ProcessApplicationInput {
28670
29425
  /** Base64-encoded application PDF */
@@ -28679,6 +29434,7 @@ interface ProcessApplicationResult {
28679
29434
  state: ApplicationState;
28680
29435
  /** Token usage across all agent calls */
28681
29436
  tokenUsage: TokenUsage;
29437
+ reviewReport: ApplicationQualityReport;
28682
29438
  }
28683
29439
  interface ProcessReplyInput {
28684
29440
  /** Application ID */
@@ -28699,6 +29455,7 @@ interface ProcessReplyResult {
28699
29455
  responseText?: string;
28700
29456
  /** Token usage */
28701
29457
  tokenUsage: TokenUsage;
29458
+ reviewReport: ApplicationQualityReport;
28702
29459
  }
28703
29460
 
28704
29461
  declare function createApplicationPipeline(config: ApplicationPipelineConfig): {
@@ -29219,6 +29976,23 @@ declare const QueryResultSchema: z.ZodObject<{
29219
29976
  }>;
29220
29977
  type QueryResult = z.infer<typeof QueryResultSchema>;
29221
29978
 
29979
+ interface QueryReviewIssue extends BaseQualityIssue {
29980
+ message: string;
29981
+ subQuestion?: string;
29982
+ citationIndex?: number;
29983
+ sourceId?: string;
29984
+ }
29985
+ interface QueryVerifyRoundRecord {
29986
+ round: number;
29987
+ approved: boolean;
29988
+ issues: string[];
29989
+ retrySubQuestions?: string[];
29990
+ }
29991
+ interface QueryReviewReport extends UnifiedQualityReport<QueryReviewIssue> {
29992
+ verifyRounds: QueryVerifyRoundRecord[];
29993
+ qualityGateStatus: QualityGateStatus;
29994
+ }
29995
+
29222
29996
  interface QueryConfig {
29223
29997
  generateText: GenerateText;
29224
29998
  generateObject: GenerateObject;
@@ -29231,6 +30005,7 @@ interface QueryConfig {
29231
30005
  onProgress?: (message: string) => void;
29232
30006
  log?: LogFn;
29233
30007
  providerOptions?: Record<string, unknown>;
30008
+ qualityGate?: QualityGateMode;
29234
30009
  }
29235
30010
  interface QueryInput {
29236
30011
  question: string;
@@ -29239,6 +30014,7 @@ interface QueryInput {
29239
30014
  }
29240
30015
  interface QueryOutput extends QueryResult {
29241
30016
  tokenUsage: TokenUsage;
30017
+ reviewReport: QueryReviewReport;
29242
30018
  }
29243
30019
 
29244
30020
  declare function createQueryAgent(config: QueryConfig): {
@@ -29308,4 +30084,4 @@ interface DocumentTemplate {
29308
30084
  }
29309
30085
  declare function getTemplate(policyType: string): DocumentTemplate;
29310
30086
 
29311
- export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type AcroFormMapping, AcroFormMappingSchema, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, type AgentContext, type AnswerParsingResult, AnswerParsingResultSchema, type ApplicationClassifyResult, ApplicationClassifyResultSchema, type ApplicationField, ApplicationFieldSchema, type ApplicationListFilters, type ApplicationPipelineConfig, type ApplicationState, ApplicationStateSchema, type ApplicationStore, type AuditType, AuditTypeSchema, type AutoFillMatch, AutoFillMatchSchema, type AutoFillResult, AutoFillResultSchema, BOAT_TYPES, type BackfillProvider, 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 ChunkFilter, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, type CommunicationIntent, CommunicationIntentSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type ConversationTurn, type ConvertPdfToImagesFn, type Coverage, type CoverageForm, CoverageFormSchema, CoverageSchema, type CoverageTrigger, CoverageTriggerSchema, 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 DocumentChunk, type DocumentFilters, type 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 EmbedText, 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 ExtractionResult, type ExtractionState, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldExtractionResult, FieldExtractionResultSchema, type FieldMapping, type FieldType, FieldTypeSchema, type FlatPdfPlacement, FlatPdfPlacementSchema, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, type GenerateObject, type GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, type InsuranceDocument, InsuranceDocumentSchema, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, type LogFn, type LookupFill, type LookupFillResult, LookupFillResultSchema, LookupFillSchema, type LookupRequest, LookupRequestSchema, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, type MemoryStore, type NamedInsured, NamedInsuredSchema, PERSONAL_AUTO_USAGES, PET_SPECIES, PLATFORM_CONFIGS, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type ParsedAnswer, ParsedAnswerSchema, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, 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, type Platform, type PlatformConfig, PlatformSchema, type PolicyCondition, PolicyConditionSchema, type PolicyDocument, PolicyDocumentSchema, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type PremiumLine, PremiumLineSchema, type PriorAnswer, type ProcessApplicationInput, type ProcessApplicationResult, type ProcessReplyInput, type ProcessReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QuestionBatchResult, QuestionBatchResultSchema, type QuoteDocument, QuoteDocumentSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type ReplyIntent, ReplyIntentSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type Section, SectionSchema, type SharedLimit, SharedLimitSchema, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type Subjectivity, type SubjectivityCategory, SubjectivityCategorySchema, SubjectivitySchema, type Sublimit, SublimitSchema, type Subsection, SubsectionSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, type TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, type UnderwritingCondition, UnderwritingConditionSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, 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, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildLookupFillPrompt, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildVerifyPrompt, chunkDocument, createApplicationPipeline, createExtractor, createPipelineContext, createQueryAgent, extractPageRange, fillAcroForm, getAcroFormFields, getExtractor, getPdfPageCount, getTemplate, overlayTextOnPdf, pLimit, safeGenerateObject, sanitizeNulls, stripFences, toStrictSchema, withRetry };
30087
+ export { ADMITTED_STATUSES, AGENT_TOOLS, APPLICATION_CLASSIFY_PROMPT, AUDIT_TYPES, type AcroFormFieldInfo, type AcroFormMapping, AcroFormMappingSchema, type Address, AddressSchema, type AdmittedStatus, AdmittedStatusSchema, type AgentContext, type AnswerParsingResult, AnswerParsingResultSchema, type ApplicationClassifyResult, ApplicationClassifyResultSchema, ApplicationEmailReviewSchema, type ApplicationField, ApplicationFieldSchema, type ApplicationListFilters, type ApplicationPipelineConfig, ApplicationQualityArtifactSchema, ApplicationQualityIssueSchema, ApplicationQualityReportSchema, ApplicationQualityRoundSchema, type ApplicationState, ApplicationStateSchema, type ApplicationStore, type AuditType, AuditTypeSchema, type AutoFillMatch, AutoFillMatchSchema, type AutoFillResult, AutoFillResultSchema, BOAT_TYPES, type BackfillProvider, 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 ChunkFilter, type ChunkType, ChunkTypeSchema, type Citation, CitationSchema, type ClaimRecord, ClaimRecordSchema, type ClaimStatus, ClaimStatusSchema, type ClassificationCode, ClassificationCodeSchema, type CommercialAutoDeclarations, CommercialAutoDeclarationsSchema, type CommercialPropertyDeclarations, CommercialPropertyDeclarationsSchema, type CommunicationIntent, CommunicationIntentSchema, ConditionKeyValueSchema, type ConditionType, ConditionTypeSchema, type ConstructionType, ConstructionTypeSchema, type Contact, ContactSchema, type ContextKeyMapping, type ConversationTurn, type 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 DocumentChunk, type DocumentFilters, type 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 EmbedText, 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 ExtractionResult, type ExtractionState, type ExtractorConfig, type ExtractorDef, FLOOD_ZONES, FOUNDATION_TYPES, type FarmRanchDeclarations, FarmRanchDeclarationsSchema, type FieldExtractionResult, FieldExtractionResultSchema, type FieldMapping, type FieldType, FieldTypeSchema, type FlatPdfPlacement, FlatPdfPlacementSchema, type FloodDeclarations, FloodDeclarationsSchema, type FloodZone, FloodZoneSchema, type FormReference, FormReferenceSchema, type FoundationType, FoundationTypeSchema, type GLDeclarations, GLDeclarationsSchema, type GenerateObject, type GenerateText, HOMEOWNERS_FORM_TYPES, type HomeownersDeclarations, HomeownersDeclarationsSchema, type HomeownersFormType, HomeownersFormTypeSchema, type IdentityTheftDeclarations, IdentityTheftDeclarationsSchema, type InsuranceDocument, InsuranceDocumentSchema, type InsuredLocation, InsuredLocationSchema, type InsuredVehicle, InsuredVehicleSchema, type InsurerInfo, InsurerInfoSchema, LIMIT_TYPES, LOSS_SETTLEMENTS, type LimitSchedule, LimitScheduleSchema, type LimitType, LimitTypeSchema, type LocationPremium, LocationPremiumSchema, type LogFn, type LookupFill, type LookupFillResult, LookupFillResultSchema, LookupFillSchema, type LookupRequest, LookupRequestSchema, type LossSettlement, LossSettlementSchema, type LossSummary, LossSummarySchema, type MemoryStore, type NamedInsured, NamedInsuredSchema, PERSONAL_AUTO_USAGES, PET_SPECIES, PLATFORM_CONFIGS, POLICY_SECTION_TYPES, POLICY_TERM_TYPES, POLICY_TYPES, type ParsedAnswer, ParsedAnswerSchema, type PaymentInstallment, PaymentInstallmentSchema, type PaymentPlan, PaymentPlanSchema, 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, type Platform, type PlatformConfig, PlatformSchema, type PolicyCondition, PolicyConditionSchema, type PolicyDocument, PolicyDocumentSchema, type PolicySectionType, PolicySectionTypeSchema, type PolicyTermType, PolicyTermTypeSchema, type PolicyType, PolicyTypeSchema, type PremiumLine, PremiumLineSchema, type PriorAnswer, type ProcessApplicationInput, type ProcessApplicationResult, type ProcessReplyInput, type ProcessReplyResult, type ProducerInfo, ProducerInfoSchema, type ProfessionalLiabilityDeclarations, ProfessionalLiabilityDeclarationsSchema, QUOTE_SECTION_TYPES, type QueryClassifyResult, QueryClassifyResultSchema, type QueryConfig, type QueryInput, type QueryIntent, QueryIntentSchema, type QueryOutput, type QueryResult, QueryResultSchema, type QuestionBatchResult, QuestionBatchResultSchema, type QuoteDocument, QuoteDocumentSchema, type QuoteSectionType, QuoteSectionTypeSchema, RATING_BASIS_TYPES, ROOF_TYPES, type RVType, RVTypeSchema, RV_TYPES, type RatingBasis, RatingBasisSchema, type RatingBasisType, RatingBasisTypeSchema, type RecreationalVehicleDeclarations, RecreationalVehicleDeclarationsSchema, type ReplyIntent, ReplyIntentSchema, type RetrievalResult, RetrievalResultSchema, type RoofType, RoofTypeSchema, SCHEDULED_ITEM_CATEGORIES, SUBJECTIVITY_CATEGORIES, type SafeGenerateOptions, type SafeGenerateParams, type ScheduledItemCategory, ScheduledItemCategorySchema, type Section, SectionSchema, type SharedLimit, SharedLimitSchema, type SubAnswer, SubAnswerSchema, type SubQuestion, SubQuestionSchema, type Subjectivity, type SubjectivityCategory, SubjectivityCategorySchema, SubjectivitySchema, type Sublimit, SublimitSchema, type Subsection, SubsectionSchema, TITLE_POLICY_TYPES, type TaxFeeItem, TaxFeeItemSchema, type TextOverlay, type TitleDeclarations, TitleDeclarationsSchema, type TitlePolicyType, TitlePolicyTypeSchema, type TokenUsage, type ToolDefinition, type TravelDeclarations, TravelDeclarationsSchema, type UmbrellaExcessDeclarations, UmbrellaExcessDeclarationsSchema, type UnderwritingCondition, UnderwritingConditionSchema, VALUATION_METHODS, VEHICLE_COVERAGE_TYPES, 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, buildFieldExplanationPrompt, buildFieldExtractionPrompt, buildFlatPdfMappingPrompt, buildFormattingPrompt, buildIdentityPrompt, buildIntentPrompt, buildLookupFillPrompt, buildQueryClassifyPrompt, buildQuestionBatchPrompt, buildQuotesPoliciesPrompt, buildReasonPrompt, buildReplyIntentClassificationPrompt, buildRespondPrompt, buildSafetyPrompt, buildVerifyPrompt, chunkDocument, createApplicationPipeline, createExtractor, createPipelineContext, createQueryAgent, extractPageRange, fillAcroForm, getAcroFormFields, getExtractor, getPdfPageCount, getTemplate, overlayTextOnPdf, pLimit, safeGenerateObject, sanitizeNulls, stripFences, toStrictSchema, withRetry };