@claritylabs/cl-sdk 1.3.8 → 3.0.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.
@@ -4,6 +4,25 @@ import Database from 'better-sqlite3';
4
4
  /** Callback to generate embeddings for text. */
5
5
  type EmbedText = (text: string) => Promise<number[]>;
6
6
 
7
+ type DocumentNode = {
8
+ id: string;
9
+ title: string;
10
+ originalTitle?: string;
11
+ type?: string;
12
+ label?: string;
13
+ level?: number;
14
+ sectionNumber?: string;
15
+ pageStart?: number;
16
+ pageEnd?: number;
17
+ formNumber?: string;
18
+ formTitle?: string;
19
+ excerpt?: string;
20
+ content?: string;
21
+ interpretationLabels?: string[];
22
+ sourceSpanIds?: string[];
23
+ sourceTextHash?: string;
24
+ children?: DocumentNode[];
25
+ };
7
26
  declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
27
  type: z.ZodLiteral<"policy">;
9
28
  policyNumber: z.ZodString;
@@ -36,12 +55,16 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
36
55
  sectionRef: z.ZodOptional<z.ZodString>;
37
56
  originalContent: z.ZodOptional<z.ZodString>;
38
57
  recordId: z.ZodOptional<z.ZodString>;
58
+ documentNodeId: z.ZodOptional<z.ZodString>;
39
59
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
40
60
  sourceTextHash: z.ZodOptional<z.ZodString>;
41
61
  }, "strip", z.ZodTypeAny, {
42
62
  name: string;
43
63
  limit: string;
44
64
  formNumber?: string | undefined;
65
+ documentNodeId?: string | undefined;
66
+ sourceSpanIds?: string[] | undefined;
67
+ sourceTextHash?: string | undefined;
45
68
  deductible?: string | undefined;
46
69
  limitAmount?: number | undefined;
47
70
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -54,12 +77,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
54
77
  sectionRef?: string | undefined;
55
78
  originalContent?: string | undefined;
56
79
  recordId?: string | undefined;
57
- sourceSpanIds?: string[] | undefined;
58
- sourceTextHash?: string | undefined;
59
80
  }, {
60
81
  name: string;
61
82
  limit: string;
62
83
  formNumber?: string | undefined;
84
+ documentNodeId?: string | undefined;
85
+ sourceSpanIds?: string[] | undefined;
86
+ sourceTextHash?: string | undefined;
63
87
  deductible?: string | undefined;
64
88
  limitAmount?: number | undefined;
65
89
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -72,9 +96,180 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
72
96
  sectionRef?: string | undefined;
73
97
  originalContent?: string | undefined;
74
98
  recordId?: string | undefined;
75
- sourceSpanIds?: string[] | undefined;
76
- sourceTextHash?: string | undefined;
77
99
  }>, "many">;
100
+ documentMetadata: z.ZodObject<{
101
+ sourceTreeVersion: z.ZodOptional<z.ZodString>;
102
+ sourceTreeCanonical: z.ZodOptional<z.ZodBoolean>;
103
+ formInventory: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ formNumber: z.ZodString;
105
+ editionDate: z.ZodOptional<z.ZodString>;
106
+ title: z.ZodOptional<z.ZodString>;
107
+ formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
108
+ pageStart: z.ZodOptional<z.ZodNumber>;
109
+ pageEnd: z.ZodOptional<z.ZodNumber>;
110
+ documentNodeId: z.ZodOptional<z.ZodString>;
111
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ sourceTextHash: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ formNumber: string;
115
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
116
+ title?: string | undefined;
117
+ editionDate?: string | undefined;
118
+ pageStart?: number | undefined;
119
+ pageEnd?: number | undefined;
120
+ documentNodeId?: string | undefined;
121
+ sourceSpanIds?: string[] | undefined;
122
+ sourceTextHash?: string | undefined;
123
+ }, {
124
+ formNumber: string;
125
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
126
+ title?: string | undefined;
127
+ editionDate?: string | undefined;
128
+ pageStart?: number | undefined;
129
+ pageEnd?: number | undefined;
130
+ documentNodeId?: string | undefined;
131
+ sourceSpanIds?: string[] | undefined;
132
+ sourceTextHash?: string | undefined;
133
+ }>, "many">>;
134
+ tableOfContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
+ title: z.ZodString;
136
+ level: z.ZodOptional<z.ZodNumber>;
137
+ pageStart: z.ZodOptional<z.ZodNumber>;
138
+ pageEnd: z.ZodOptional<z.ZodNumber>;
139
+ documentNodeId: z.ZodOptional<z.ZodString>;
140
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ title: string;
143
+ pageStart?: number | undefined;
144
+ pageEnd?: number | undefined;
145
+ documentNodeId?: string | undefined;
146
+ sourceSpanIds?: string[] | undefined;
147
+ level?: number | undefined;
148
+ }, {
149
+ title: string;
150
+ pageStart?: number | undefined;
151
+ pageEnd?: number | undefined;
152
+ documentNodeId?: string | undefined;
153
+ sourceSpanIds?: string[] | undefined;
154
+ level?: number | undefined;
155
+ }>, "many">>;
156
+ pageMap: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ page: z.ZodNumber;
158
+ label: z.ZodOptional<z.ZodString>;
159
+ formNumber: z.ZodOptional<z.ZodString>;
160
+ formTitle: z.ZodOptional<z.ZodString>;
161
+ sectionTitle: z.ZodOptional<z.ZodString>;
162
+ extractorNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
163
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ page: number;
166
+ formNumber?: string | undefined;
167
+ sourceSpanIds?: string[] | undefined;
168
+ formTitle?: string | undefined;
169
+ label?: string | undefined;
170
+ sectionTitle?: string | undefined;
171
+ extractorNames?: string[] | undefined;
172
+ }, {
173
+ page: number;
174
+ formNumber?: string | undefined;
175
+ sourceSpanIds?: string[] | undefined;
176
+ formTitle?: string | undefined;
177
+ label?: string | undefined;
178
+ sectionTitle?: string | undefined;
179
+ extractorNames?: string[] | undefined;
180
+ }>, "many">>;
181
+ agentGuidance: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
+ kind: z.ZodString;
183
+ title: z.ZodString;
184
+ detail: z.ZodString;
185
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ title: string;
188
+ kind: string;
189
+ detail: string;
190
+ sourceSpanIds?: string[] | undefined;
191
+ }, {
192
+ title: string;
193
+ kind: string;
194
+ detail: string;
195
+ sourceSpanIds?: string[] | undefined;
196
+ }>, "many">>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ sourceTreeVersion?: string | undefined;
199
+ sourceTreeCanonical?: boolean | undefined;
200
+ formInventory?: {
201
+ formNumber: string;
202
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
203
+ title?: string | undefined;
204
+ editionDate?: string | undefined;
205
+ pageStart?: number | undefined;
206
+ pageEnd?: number | undefined;
207
+ documentNodeId?: string | undefined;
208
+ sourceSpanIds?: string[] | undefined;
209
+ sourceTextHash?: string | undefined;
210
+ }[] | undefined;
211
+ tableOfContents?: {
212
+ title: string;
213
+ pageStart?: number | undefined;
214
+ pageEnd?: number | undefined;
215
+ documentNodeId?: string | undefined;
216
+ sourceSpanIds?: string[] | undefined;
217
+ level?: number | undefined;
218
+ }[] | undefined;
219
+ pageMap?: {
220
+ page: number;
221
+ formNumber?: string | undefined;
222
+ sourceSpanIds?: string[] | undefined;
223
+ formTitle?: string | undefined;
224
+ label?: string | undefined;
225
+ sectionTitle?: string | undefined;
226
+ extractorNames?: string[] | undefined;
227
+ }[] | undefined;
228
+ agentGuidance?: {
229
+ title: string;
230
+ kind: string;
231
+ detail: string;
232
+ sourceSpanIds?: string[] | undefined;
233
+ }[] | undefined;
234
+ }, {
235
+ sourceTreeVersion?: string | undefined;
236
+ sourceTreeCanonical?: boolean | undefined;
237
+ formInventory?: {
238
+ formNumber: string;
239
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
240
+ title?: string | undefined;
241
+ editionDate?: string | undefined;
242
+ pageStart?: number | undefined;
243
+ pageEnd?: number | undefined;
244
+ documentNodeId?: string | undefined;
245
+ sourceSpanIds?: string[] | undefined;
246
+ sourceTextHash?: string | undefined;
247
+ }[] | undefined;
248
+ tableOfContents?: {
249
+ title: string;
250
+ pageStart?: number | undefined;
251
+ pageEnd?: number | undefined;
252
+ documentNodeId?: string | undefined;
253
+ sourceSpanIds?: string[] | undefined;
254
+ level?: number | undefined;
255
+ }[] | undefined;
256
+ pageMap?: {
257
+ page: number;
258
+ formNumber?: string | undefined;
259
+ sourceSpanIds?: string[] | undefined;
260
+ formTitle?: string | undefined;
261
+ label?: string | undefined;
262
+ sectionTitle?: string | undefined;
263
+ extractorNames?: string[] | undefined;
264
+ }[] | undefined;
265
+ agentGuidance?: {
266
+ title: string;
267
+ kind: string;
268
+ detail: string;
269
+ sourceSpanIds?: string[] | undefined;
270
+ }[] | undefined;
271
+ }>;
272
+ documentOutline: z.ZodArray<z.ZodType<DocumentNode, z.ZodTypeDef, DocumentNode>, "many">;
78
273
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
274
  title: z.ZodString;
80
275
  sectionNumber: z.ZodOptional<z.ZodString>;
@@ -90,26 +285,30 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
90
285
  pageNumber: z.ZodOptional<z.ZodNumber>;
91
286
  excerpt: z.ZodOptional<z.ZodString>;
92
287
  content: z.ZodOptional<z.ZodString>;
288
+ documentNodeId: z.ZodOptional<z.ZodString>;
93
289
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
290
  sourceTextHash: z.ZodOptional<z.ZodString>;
95
291
  }, "strip", z.ZodTypeAny, {
96
292
  title: string;
97
- pageNumber?: number | undefined;
293
+ documentNodeId?: string | undefined;
98
294
  sourceSpanIds?: string[] | undefined;
99
295
  sourceTextHash?: string | undefined;
296
+ pageNumber?: number | undefined;
100
297
  excerpt?: string | undefined;
101
298
  content?: string | undefined;
102
299
  sectionNumber?: string | undefined;
103
300
  }, {
104
301
  title: string;
105
- pageNumber?: number | undefined;
302
+ documentNodeId?: string | undefined;
106
303
  sourceSpanIds?: string[] | undefined;
107
304
  sourceTextHash?: string | undefined;
305
+ pageNumber?: number | undefined;
108
306
  excerpt?: string | undefined;
109
307
  content?: string | undefined;
110
308
  sectionNumber?: string | undefined;
111
309
  }>, "many">>;
112
310
  recordId: z.ZodOptional<z.ZodString>;
311
+ documentNodeId: z.ZodOptional<z.ZodString>;
113
312
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
114
313
  sourceTextHash: z.ZodOptional<z.ZodString>;
115
314
  }, "strip", z.ZodTypeAny, {
@@ -117,18 +316,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
117
316
  type: string;
118
317
  pageStart: number;
119
318
  pageEnd?: number | undefined;
120
- recordId?: string | undefined;
319
+ documentNodeId?: string | undefined;
121
320
  sourceSpanIds?: string[] | undefined;
122
321
  sourceTextHash?: string | undefined;
322
+ recordId?: string | undefined;
123
323
  excerpt?: string | undefined;
124
324
  content?: string | undefined;
125
325
  sectionNumber?: string | undefined;
126
326
  coverageType?: string | undefined;
127
327
  subsections?: {
128
328
  title: string;
129
- pageNumber?: number | undefined;
329
+ documentNodeId?: string | undefined;
130
330
  sourceSpanIds?: string[] | undefined;
131
331
  sourceTextHash?: string | undefined;
332
+ pageNumber?: number | undefined;
132
333
  excerpt?: string | undefined;
133
334
  content?: string | undefined;
134
335
  sectionNumber?: string | undefined;
@@ -138,18 +339,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
138
339
  type: string;
139
340
  pageStart: number;
140
341
  pageEnd?: number | undefined;
141
- recordId?: string | undefined;
342
+ documentNodeId?: string | undefined;
142
343
  sourceSpanIds?: string[] | undefined;
143
344
  sourceTextHash?: string | undefined;
345
+ recordId?: string | undefined;
144
346
  excerpt?: string | undefined;
145
347
  content?: string | undefined;
146
348
  sectionNumber?: string | undefined;
147
349
  coverageType?: string | undefined;
148
350
  subsections?: {
149
351
  title: string;
150
- pageNumber?: number | undefined;
352
+ documentNodeId?: string | undefined;
151
353
  sourceSpanIds?: string[] | undefined;
152
354
  sourceTextHash?: string | undefined;
355
+ pageNumber?: number | undefined;
153
356
  excerpt?: string | undefined;
154
357
  content?: string | undefined;
155
358
  sectionNumber?: string | undefined;
@@ -164,29 +367,32 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
164
367
  sectionRef: z.ZodOptional<z.ZodString>;
165
368
  originalContent: z.ZodOptional<z.ZodString>;
166
369
  recordId: z.ZodOptional<z.ZodString>;
370
+ documentNodeId: z.ZodOptional<z.ZodString>;
167
371
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
372
  sourceTextHash: z.ZodOptional<z.ZodString>;
169
373
  }, "strip", z.ZodTypeAny, {
170
374
  definition: string;
171
375
  term: string;
172
376
  formNumber?: string | undefined;
377
+ documentNodeId?: string | undefined;
378
+ sourceSpanIds?: string[] | undefined;
379
+ sourceTextHash?: string | undefined;
173
380
  pageNumber?: number | undefined;
174
381
  sectionRef?: string | undefined;
175
382
  originalContent?: string | undefined;
176
383
  recordId?: string | undefined;
177
- sourceSpanIds?: string[] | undefined;
178
- sourceTextHash?: string | undefined;
179
384
  formTitle?: string | undefined;
180
385
  }, {
181
386
  definition: string;
182
387
  term: string;
183
388
  formNumber?: string | undefined;
389
+ documentNodeId?: string | undefined;
390
+ sourceSpanIds?: string[] | undefined;
391
+ sourceTextHash?: string | undefined;
184
392
  pageNumber?: number | undefined;
185
393
  sectionRef?: string | undefined;
186
394
  originalContent?: string | undefined;
187
395
  recordId?: string | undefined;
188
- sourceSpanIds?: string[] | undefined;
189
- sourceTextHash?: string | undefined;
190
396
  formTitle?: string | undefined;
191
397
  }>, "many">>;
192
398
  coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -203,6 +409,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
203
409
  sectionRef: z.ZodOptional<z.ZodString>;
204
410
  originalContent: z.ZodOptional<z.ZodString>;
205
411
  recordId: z.ZodOptional<z.ZodString>;
412
+ documentNodeId: z.ZodOptional<z.ZodString>;
206
413
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
207
414
  sourceTextHash: z.ZodOptional<z.ZodString>;
208
415
  }, "strip", z.ZodTypeAny, {
@@ -211,13 +418,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
211
418
  title?: string | undefined;
212
419
  conditions?: string[] | undefined;
213
420
  formNumber?: string | undefined;
421
+ documentNodeId?: string | undefined;
422
+ sourceSpanIds?: string[] | undefined;
423
+ sourceTextHash?: string | undefined;
214
424
  appliesTo?: string[] | undefined;
215
425
  pageNumber?: number | undefined;
216
426
  sectionRef?: string | undefined;
217
427
  originalContent?: string | undefined;
218
428
  recordId?: string | undefined;
219
- sourceSpanIds?: string[] | undefined;
220
- sourceTextHash?: string | undefined;
221
429
  exceptions?: string[] | undefined;
222
430
  formTitle?: string | undefined;
223
431
  reasonNumber?: string | undefined;
@@ -227,13 +435,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
227
435
  title?: string | undefined;
228
436
  conditions?: string[] | undefined;
229
437
  formNumber?: string | undefined;
438
+ documentNodeId?: string | undefined;
439
+ sourceSpanIds?: string[] | undefined;
440
+ sourceTextHash?: string | undefined;
230
441
  appliesTo?: string[] | undefined;
231
442
  pageNumber?: number | undefined;
232
443
  sectionRef?: string | undefined;
233
444
  originalContent?: string | undefined;
234
445
  recordId?: string | undefined;
235
- sourceSpanIds?: string[] | undefined;
236
- sourceTextHash?: string | undefined;
237
446
  exceptions?: string[] | undefined;
238
447
  formTitle?: string | undefined;
239
448
  reasonNumber?: string | undefined;
@@ -352,6 +561,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
352
561
  sectionRef: z.ZodOptional<z.ZodString>;
353
562
  originalContent: z.ZodOptional<z.ZodString>;
354
563
  recordId: z.ZodOptional<z.ZodString>;
564
+ documentNodeId: z.ZodOptional<z.ZodString>;
355
565
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
566
  sourceTextHash: z.ZodOptional<z.ZodString>;
357
567
  }, "strip", z.ZodTypeAny, {
@@ -359,6 +569,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
359
569
  limit: string;
360
570
  included: boolean;
361
571
  formNumber?: string | undefined;
572
+ documentNodeId?: string | undefined;
573
+ sourceSpanIds?: string[] | undefined;
574
+ sourceTextHash?: string | undefined;
362
575
  deductible?: string | undefined;
363
576
  limitAmount?: number | undefined;
364
577
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -371,8 +584,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
371
584
  sectionRef?: string | undefined;
372
585
  originalContent?: string | undefined;
373
586
  recordId?: string | undefined;
374
- sourceSpanIds?: string[] | undefined;
375
- sourceTextHash?: string | undefined;
376
587
  coverageCode?: string | undefined;
377
588
  formEditionDate?: string | undefined;
378
589
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -387,6 +598,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
387
598
  limit: string;
388
599
  included: boolean;
389
600
  formNumber?: string | undefined;
601
+ documentNodeId?: string | undefined;
602
+ sourceSpanIds?: string[] | undefined;
603
+ sourceTextHash?: string | undefined;
390
604
  deductible?: string | undefined;
391
605
  limitAmount?: number | undefined;
392
606
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -399,8 +613,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
399
613
  sectionRef?: string | undefined;
400
614
  originalContent?: string | undefined;
401
615
  recordId?: string | undefined;
402
- sourceSpanIds?: string[] | undefined;
403
- sourceTextHash?: string | undefined;
404
616
  coverageCode?: string | undefined;
405
617
  formEditionDate?: string | undefined;
406
618
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -479,6 +691,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
479
691
  pageStart: z.ZodNumber;
480
692
  pageEnd: z.ZodOptional<z.ZodNumber>;
481
693
  recordId: z.ZodOptional<z.ZodString>;
694
+ documentNodeId: z.ZodOptional<z.ZodString>;
482
695
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
483
696
  sourceTextHash: z.ZodOptional<z.ZodString>;
484
697
  }, "strip", z.ZodTypeAny, {
@@ -488,9 +701,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
488
701
  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";
489
702
  editionDate?: string | undefined;
490
703
  pageEnd?: number | undefined;
491
- recordId?: string | undefined;
704
+ documentNodeId?: string | undefined;
492
705
  sourceSpanIds?: string[] | undefined;
493
706
  sourceTextHash?: string | undefined;
707
+ recordId?: string | undefined;
494
708
  effectiveDate?: string | undefined;
495
709
  affectedCoverageParts?: string[] | undefined;
496
710
  namedParties?: {
@@ -518,9 +732,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
518
732
  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";
519
733
  editionDate?: string | undefined;
520
734
  pageEnd?: number | undefined;
521
- recordId?: string | undefined;
735
+ documentNodeId?: string | undefined;
522
736
  sourceSpanIds?: string[] | undefined;
523
737
  sourceTextHash?: string | undefined;
738
+ recordId?: string | undefined;
524
739
  effectiveDate?: string | undefined;
525
740
  affectedCoverageParts?: string[] | undefined;
526
741
  namedParties?: {
@@ -554,17 +769,19 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
554
769
  content: z.ZodString;
555
770
  pageNumber: z.ZodOptional<z.ZodNumber>;
556
771
  recordId: z.ZodOptional<z.ZodString>;
772
+ documentNodeId: z.ZodOptional<z.ZodString>;
557
773
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
558
774
  sourceTextHash: z.ZodOptional<z.ZodString>;
559
775
  }, "strip", z.ZodTypeAny, {
560
776
  name: string;
561
777
  content: string;
562
778
  formNumber?: string | undefined;
779
+ documentNodeId?: string | undefined;
780
+ sourceSpanIds?: string[] | undefined;
781
+ sourceTextHash?: string | undefined;
563
782
  appliesTo?: string[] | undefined;
564
783
  pageNumber?: number | undefined;
565
784
  recordId?: string | undefined;
566
- sourceSpanIds?: string[] | undefined;
567
- sourceTextHash?: string | undefined;
568
785
  excludedPerils?: string[] | undefined;
569
786
  isAbsolute?: boolean | undefined;
570
787
  exceptions?: string[] | undefined;
@@ -574,11 +791,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
574
791
  name: string;
575
792
  content: string;
576
793
  formNumber?: string | undefined;
794
+ documentNodeId?: string | undefined;
795
+ sourceSpanIds?: string[] | undefined;
796
+ sourceTextHash?: string | undefined;
577
797
  appliesTo?: string[] | undefined;
578
798
  pageNumber?: number | undefined;
579
799
  recordId?: string | undefined;
580
- sourceSpanIds?: string[] | undefined;
581
- sourceTextHash?: string | undefined;
582
800
  excludedPerils?: string[] | undefined;
583
801
  isAbsolute?: boolean | undefined;
584
802
  exceptions?: string[] | undefined;
@@ -601,16 +819,18 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
601
819
  }>, "many">>;
602
820
  pageNumber: z.ZodOptional<z.ZodNumber>;
603
821
  recordId: z.ZodOptional<z.ZodString>;
822
+ documentNodeId: z.ZodOptional<z.ZodString>;
604
823
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
605
824
  sourceTextHash: z.ZodOptional<z.ZodString>;
606
825
  }, "strip", z.ZodTypeAny, {
607
826
  name: string;
608
827
  content: string;
609
828
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
610
- pageNumber?: number | undefined;
611
- recordId?: string | undefined;
829
+ documentNodeId?: string | undefined;
612
830
  sourceSpanIds?: string[] | undefined;
613
831
  sourceTextHash?: string | undefined;
832
+ pageNumber?: number | undefined;
833
+ recordId?: string | undefined;
614
834
  keyValues?: {
615
835
  value: string;
616
836
  key: string;
@@ -619,10 +839,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
619
839
  name: string;
620
840
  content: string;
621
841
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
622
- pageNumber?: number | undefined;
623
- recordId?: string | undefined;
842
+ documentNodeId?: string | undefined;
624
843
  sourceSpanIds?: string[] | undefined;
625
844
  sourceTextHash?: string | undefined;
845
+ pageNumber?: number | undefined;
846
+ recordId?: string | undefined;
626
847
  keyValues?: {
627
848
  value: string;
628
849
  key: string;
@@ -951,6 +1172,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
951
1172
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
952
1173
  pageStart: z.ZodOptional<z.ZodNumber>;
953
1174
  pageEnd: z.ZodOptional<z.ZodNumber>;
1175
+ documentNodeId: z.ZodOptional<z.ZodString>;
1176
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1177
+ sourceTextHash: z.ZodOptional<z.ZodString>;
954
1178
  }, "strip", z.ZodTypeAny, {
955
1179
  formNumber: string;
956
1180
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
@@ -958,6 +1182,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
958
1182
  editionDate?: string | undefined;
959
1183
  pageStart?: number | undefined;
960
1184
  pageEnd?: number | undefined;
1185
+ documentNodeId?: string | undefined;
1186
+ sourceSpanIds?: string[] | undefined;
1187
+ sourceTextHash?: string | undefined;
961
1188
  }, {
962
1189
  formNumber: string;
963
1190
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
@@ -965,6 +1192,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
965
1192
  editionDate?: string | undefined;
966
1193
  pageStart?: number | undefined;
967
1194
  pageEnd?: number | undefined;
1195
+ documentNodeId?: string | undefined;
1196
+ sourceSpanIds?: string[] | undefined;
1197
+ sourceTextHash?: string | undefined;
968
1198
  }>, "many">>;
969
1199
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
970
1200
  line: z.ZodLiteral<"homeowners">;
@@ -3564,16 +3794,25 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3564
3794
  amountValue: z.ZodOptional<z.ZodNumber>;
3565
3795
  type: z.ZodOptional<z.ZodEnum<["tax", "fee", "surcharge", "assessment"]>>;
3566
3796
  description: z.ZodOptional<z.ZodString>;
3797
+ documentNodeId: z.ZodOptional<z.ZodString>;
3798
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3799
+ sourceTextHash: z.ZodOptional<z.ZodString>;
3567
3800
  }, "strip", z.ZodTypeAny, {
3568
3801
  name: string;
3569
3802
  amount: string;
3570
3803
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
3804
+ documentNodeId?: string | undefined;
3805
+ sourceSpanIds?: string[] | undefined;
3806
+ sourceTextHash?: string | undefined;
3571
3807
  amountValue?: number | undefined;
3572
3808
  description?: string | undefined;
3573
3809
  }, {
3574
3810
  name: string;
3575
3811
  amount: string;
3576
3812
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
3813
+ documentNodeId?: string | undefined;
3814
+ sourceSpanIds?: string[] | undefined;
3815
+ sourceTextHash?: string | undefined;
3577
3816
  amountValue?: number | undefined;
3578
3817
  description?: string | undefined;
3579
3818
  }>, "many">>;
@@ -3713,14 +3952,23 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3713
3952
  value: z.ZodString;
3714
3953
  subject: z.ZodOptional<z.ZodString>;
3715
3954
  context: z.ZodOptional<z.ZodString>;
3955
+ documentNodeId: z.ZodOptional<z.ZodString>;
3956
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3957
+ sourceTextHash: z.ZodOptional<z.ZodString>;
3716
3958
  }, "strip", z.ZodTypeAny, {
3717
3959
  value: string;
3718
3960
  key: string;
3961
+ documentNodeId?: string | undefined;
3962
+ sourceSpanIds?: string[] | undefined;
3963
+ sourceTextHash?: string | undefined;
3719
3964
  subject?: string | undefined;
3720
3965
  context?: string | undefined;
3721
3966
  }, {
3722
3967
  value: string;
3723
3968
  key: string;
3969
+ documentNodeId?: string | undefined;
3970
+ sourceSpanIds?: string[] | undefined;
3971
+ sourceTextHash?: string | undefined;
3724
3972
  subject?: string | undefined;
3725
3973
  context?: string | undefined;
3726
3974
  }>, "many">>;
@@ -3731,6 +3979,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3731
3979
  name: string;
3732
3980
  limit: string;
3733
3981
  formNumber?: string | undefined;
3982
+ documentNodeId?: string | undefined;
3983
+ sourceSpanIds?: string[] | undefined;
3984
+ sourceTextHash?: string | undefined;
3734
3985
  deductible?: string | undefined;
3735
3986
  limitAmount?: number | undefined;
3736
3987
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -3743,13 +3994,50 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3743
3994
  sectionRef?: string | undefined;
3744
3995
  originalContent?: string | undefined;
3745
3996
  recordId?: string | undefined;
3746
- sourceSpanIds?: string[] | undefined;
3747
- sourceTextHash?: string | undefined;
3748
3997
  }[];
3749
3998
  carrier: string;
3750
3999
  policyNumber: string;
3751
4000
  id: string;
3752
4001
  insuredName: string;
4002
+ documentMetadata: {
4003
+ sourceTreeVersion?: string | undefined;
4004
+ sourceTreeCanonical?: boolean | undefined;
4005
+ formInventory?: {
4006
+ formNumber: string;
4007
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
4008
+ title?: string | undefined;
4009
+ editionDate?: string | undefined;
4010
+ pageStart?: number | undefined;
4011
+ pageEnd?: number | undefined;
4012
+ documentNodeId?: string | undefined;
4013
+ sourceSpanIds?: string[] | undefined;
4014
+ sourceTextHash?: string | undefined;
4015
+ }[] | undefined;
4016
+ tableOfContents?: {
4017
+ title: string;
4018
+ pageStart?: number | undefined;
4019
+ pageEnd?: number | undefined;
4020
+ documentNodeId?: string | undefined;
4021
+ sourceSpanIds?: string[] | undefined;
4022
+ level?: number | undefined;
4023
+ }[] | undefined;
4024
+ pageMap?: {
4025
+ page: number;
4026
+ formNumber?: string | undefined;
4027
+ sourceSpanIds?: string[] | undefined;
4028
+ formTitle?: string | undefined;
4029
+ label?: string | undefined;
4030
+ sectionTitle?: string | undefined;
4031
+ extractorNames?: string[] | undefined;
4032
+ }[] | undefined;
4033
+ agentGuidance?: {
4034
+ title: string;
4035
+ kind: string;
4036
+ detail: string;
4037
+ sourceSpanIds?: string[] | undefined;
4038
+ }[] | undefined;
4039
+ };
4040
+ documentOutline: DocumentNode[];
3753
4041
  declarations?: {
3754
4042
  formType: "HO-3" | "HO-5" | "HO-4" | "HO-6" | "HO-7" | "HO-8";
3755
4043
  line: "homeowners";
@@ -4249,10 +4537,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4249
4537
  name: string;
4250
4538
  content: string;
4251
4539
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
4252
- pageNumber?: number | undefined;
4253
- recordId?: string | undefined;
4540
+ documentNodeId?: string | undefined;
4254
4541
  sourceSpanIds?: string[] | undefined;
4255
4542
  sourceTextHash?: string | undefined;
4543
+ pageNumber?: number | undefined;
4544
+ recordId?: string | undefined;
4256
4545
  keyValues?: {
4257
4546
  value: string;
4258
4547
  key: string;
@@ -4355,6 +4644,17 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4355
4644
  supplementalYears?: number | undefined;
4356
4645
  supplementalPremium?: string | undefined;
4357
4646
  } | undefined;
4647
+ formInventory?: {
4648
+ formNumber: string;
4649
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
4650
+ title?: string | undefined;
4651
+ editionDate?: string | undefined;
4652
+ pageStart?: number | undefined;
4653
+ pageEnd?: number | undefined;
4654
+ documentNodeId?: string | undefined;
4655
+ sourceSpanIds?: string[] | undefined;
4656
+ sourceTextHash?: string | undefined;
4657
+ }[] | undefined;
4358
4658
  expirationDate?: string | undefined;
4359
4659
  policyTermType?: "fixed" | "continuous" | undefined;
4360
4660
  nextReviewDate?: string | undefined;
@@ -4368,18 +4668,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4368
4668
  type: string;
4369
4669
  pageStart: number;
4370
4670
  pageEnd?: number | undefined;
4371
- recordId?: string | undefined;
4671
+ documentNodeId?: string | undefined;
4372
4672
  sourceSpanIds?: string[] | undefined;
4373
4673
  sourceTextHash?: string | undefined;
4674
+ recordId?: string | undefined;
4374
4675
  excerpt?: string | undefined;
4375
4676
  content?: string | undefined;
4376
4677
  sectionNumber?: string | undefined;
4377
4678
  coverageType?: string | undefined;
4378
4679
  subsections?: {
4379
4680
  title: string;
4380
- pageNumber?: number | undefined;
4681
+ documentNodeId?: string | undefined;
4381
4682
  sourceSpanIds?: string[] | undefined;
4382
4683
  sourceTextHash?: string | undefined;
4684
+ pageNumber?: number | undefined;
4383
4685
  excerpt?: string | undefined;
4384
4686
  content?: string | undefined;
4385
4687
  sectionNumber?: string | undefined;
@@ -4389,12 +4691,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4389
4691
  definition: string;
4390
4692
  term: string;
4391
4693
  formNumber?: string | undefined;
4694
+ documentNodeId?: string | undefined;
4695
+ sourceSpanIds?: string[] | undefined;
4696
+ sourceTextHash?: string | undefined;
4392
4697
  pageNumber?: number | undefined;
4393
4698
  sectionRef?: string | undefined;
4394
4699
  originalContent?: string | undefined;
4395
4700
  recordId?: string | undefined;
4396
- sourceSpanIds?: string[] | undefined;
4397
- sourceTextHash?: string | undefined;
4398
4701
  formTitle?: string | undefined;
4399
4702
  }[] | undefined;
4400
4703
  coveredReasons?: {
@@ -4403,13 +4706,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4403
4706
  title?: string | undefined;
4404
4707
  conditions?: string[] | undefined;
4405
4708
  formNumber?: string | undefined;
4709
+ documentNodeId?: string | undefined;
4710
+ sourceSpanIds?: string[] | undefined;
4711
+ sourceTextHash?: string | undefined;
4406
4712
  appliesTo?: string[] | undefined;
4407
4713
  pageNumber?: number | undefined;
4408
4714
  sectionRef?: string | undefined;
4409
4715
  originalContent?: string | undefined;
4410
4716
  recordId?: string | undefined;
4411
- sourceSpanIds?: string[] | undefined;
4412
- sourceTextHash?: string | undefined;
4413
4717
  exceptions?: string[] | undefined;
4414
4718
  formTitle?: string | undefined;
4415
4719
  reasonNumber?: string | undefined;
@@ -4456,6 +4760,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4456
4760
  limit: string;
4457
4761
  included: boolean;
4458
4762
  formNumber?: string | undefined;
4763
+ documentNodeId?: string | undefined;
4764
+ sourceSpanIds?: string[] | undefined;
4765
+ sourceTextHash?: string | undefined;
4459
4766
  deductible?: string | undefined;
4460
4767
  limitAmount?: number | undefined;
4461
4768
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -4468,8 +4775,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4468
4775
  sectionRef?: string | undefined;
4469
4776
  originalContent?: string | undefined;
4470
4777
  recordId?: string | undefined;
4471
- sourceSpanIds?: string[] | undefined;
4472
- sourceTextHash?: string | undefined;
4473
4778
  coverageCode?: string | undefined;
4474
4779
  formEditionDate?: string | undefined;
4475
4780
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -4487,9 +4792,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4487
4792
  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";
4488
4793
  editionDate?: string | undefined;
4489
4794
  pageEnd?: number | undefined;
4490
- recordId?: string | undefined;
4795
+ documentNodeId?: string | undefined;
4491
4796
  sourceSpanIds?: string[] | undefined;
4492
4797
  sourceTextHash?: string | undefined;
4798
+ recordId?: string | undefined;
4493
4799
  effectiveDate?: string | undefined;
4494
4800
  affectedCoverageParts?: string[] | undefined;
4495
4801
  namedParties?: {
@@ -4515,11 +4821,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4515
4821
  name: string;
4516
4822
  content: string;
4517
4823
  formNumber?: string | undefined;
4824
+ documentNodeId?: string | undefined;
4825
+ sourceSpanIds?: string[] | undefined;
4826
+ sourceTextHash?: string | undefined;
4518
4827
  appliesTo?: string[] | undefined;
4519
4828
  pageNumber?: number | undefined;
4520
4829
  recordId?: string | undefined;
4521
- sourceSpanIds?: string[] | undefined;
4522
- sourceTextHash?: string | undefined;
4523
4830
  excludedPerils?: string[] | undefined;
4524
4831
  isAbsolute?: boolean | undefined;
4525
4832
  exceptions?: string[] | undefined;
@@ -4535,14 +4842,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4535
4842
  corridorDeductible?: string | undefined;
4536
4843
  waitingPeriod?: string | undefined;
4537
4844
  } | undefined;
4538
- formInventory?: {
4539
- formNumber: string;
4540
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
4541
- title?: string | undefined;
4542
- editionDate?: string | undefined;
4543
- pageStart?: number | undefined;
4544
- pageEnd?: number | undefined;
4545
- }[] | undefined;
4546
4845
  insurer?: {
4547
4846
  legalName: string;
4548
4847
  naicNumber?: string | undefined;
@@ -4663,6 +4962,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4663
4962
  name: string;
4664
4963
  amount: string;
4665
4964
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
4965
+ documentNodeId?: string | undefined;
4966
+ sourceSpanIds?: string[] | undefined;
4967
+ sourceTextHash?: string | undefined;
4666
4968
  amountValue?: number | undefined;
4667
4969
  description?: string | undefined;
4668
4970
  }[] | undefined;
@@ -4715,6 +5017,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4715
5017
  supplementaryFacts?: {
4716
5018
  value: string;
4717
5019
  key: string;
5020
+ documentNodeId?: string | undefined;
5021
+ sourceSpanIds?: string[] | undefined;
5022
+ sourceTextHash?: string | undefined;
4718
5023
  subject?: string | undefined;
4719
5024
  context?: string | undefined;
4720
5025
  }[] | undefined;
@@ -4725,6 +5030,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4725
5030
  name: string;
4726
5031
  limit: string;
4727
5032
  formNumber?: string | undefined;
5033
+ documentNodeId?: string | undefined;
5034
+ sourceSpanIds?: string[] | undefined;
5035
+ sourceTextHash?: string | undefined;
4728
5036
  deductible?: string | undefined;
4729
5037
  limitAmount?: number | undefined;
4730
5038
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -4737,13 +5045,50 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4737
5045
  sectionRef?: string | undefined;
4738
5046
  originalContent?: string | undefined;
4739
5047
  recordId?: string | undefined;
4740
- sourceSpanIds?: string[] | undefined;
4741
- sourceTextHash?: string | undefined;
4742
5048
  }[];
4743
5049
  carrier: string;
4744
5050
  policyNumber: string;
4745
5051
  id: string;
4746
5052
  insuredName: string;
5053
+ documentMetadata: {
5054
+ sourceTreeVersion?: string | undefined;
5055
+ sourceTreeCanonical?: boolean | undefined;
5056
+ formInventory?: {
5057
+ formNumber: string;
5058
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
5059
+ title?: string | undefined;
5060
+ editionDate?: string | undefined;
5061
+ pageStart?: number | undefined;
5062
+ pageEnd?: number | undefined;
5063
+ documentNodeId?: string | undefined;
5064
+ sourceSpanIds?: string[] | undefined;
5065
+ sourceTextHash?: string | undefined;
5066
+ }[] | undefined;
5067
+ tableOfContents?: {
5068
+ title: string;
5069
+ pageStart?: number | undefined;
5070
+ pageEnd?: number | undefined;
5071
+ documentNodeId?: string | undefined;
5072
+ sourceSpanIds?: string[] | undefined;
5073
+ level?: number | undefined;
5074
+ }[] | undefined;
5075
+ pageMap?: {
5076
+ page: number;
5077
+ formNumber?: string | undefined;
5078
+ sourceSpanIds?: string[] | undefined;
5079
+ formTitle?: string | undefined;
5080
+ label?: string | undefined;
5081
+ sectionTitle?: string | undefined;
5082
+ extractorNames?: string[] | undefined;
5083
+ }[] | undefined;
5084
+ agentGuidance?: {
5085
+ title: string;
5086
+ kind: string;
5087
+ detail: string;
5088
+ sourceSpanIds?: string[] | undefined;
5089
+ }[] | undefined;
5090
+ };
5091
+ documentOutline: DocumentNode[];
4747
5092
  declarations?: {
4748
5093
  formType: "HO-3" | "HO-5" | "HO-4" | "HO-6" | "HO-7" | "HO-8";
4749
5094
  line: "homeowners";
@@ -5243,10 +5588,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5243
5588
  name: string;
5244
5589
  content: string;
5245
5590
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
5246
- pageNumber?: number | undefined;
5247
- recordId?: string | undefined;
5591
+ documentNodeId?: string | undefined;
5248
5592
  sourceSpanIds?: string[] | undefined;
5249
5593
  sourceTextHash?: string | undefined;
5594
+ pageNumber?: number | undefined;
5595
+ recordId?: string | undefined;
5250
5596
  keyValues?: {
5251
5597
  value: string;
5252
5598
  key: string;
@@ -5349,6 +5695,17 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5349
5695
  supplementalYears?: number | undefined;
5350
5696
  supplementalPremium?: string | undefined;
5351
5697
  } | undefined;
5698
+ formInventory?: {
5699
+ formNumber: string;
5700
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
5701
+ title?: string | undefined;
5702
+ editionDate?: string | undefined;
5703
+ pageStart?: number | undefined;
5704
+ pageEnd?: number | undefined;
5705
+ documentNodeId?: string | undefined;
5706
+ sourceSpanIds?: string[] | undefined;
5707
+ sourceTextHash?: string | undefined;
5708
+ }[] | undefined;
5352
5709
  expirationDate?: string | undefined;
5353
5710
  policyTermType?: "fixed" | "continuous" | undefined;
5354
5711
  nextReviewDate?: string | undefined;
@@ -5362,18 +5719,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5362
5719
  type: string;
5363
5720
  pageStart: number;
5364
5721
  pageEnd?: number | undefined;
5365
- recordId?: string | undefined;
5722
+ documentNodeId?: string | undefined;
5366
5723
  sourceSpanIds?: string[] | undefined;
5367
5724
  sourceTextHash?: string | undefined;
5725
+ recordId?: string | undefined;
5368
5726
  excerpt?: string | undefined;
5369
5727
  content?: string | undefined;
5370
5728
  sectionNumber?: string | undefined;
5371
5729
  coverageType?: string | undefined;
5372
5730
  subsections?: {
5373
5731
  title: string;
5374
- pageNumber?: number | undefined;
5732
+ documentNodeId?: string | undefined;
5375
5733
  sourceSpanIds?: string[] | undefined;
5376
5734
  sourceTextHash?: string | undefined;
5735
+ pageNumber?: number | undefined;
5377
5736
  excerpt?: string | undefined;
5378
5737
  content?: string | undefined;
5379
5738
  sectionNumber?: string | undefined;
@@ -5383,12 +5742,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5383
5742
  definition: string;
5384
5743
  term: string;
5385
5744
  formNumber?: string | undefined;
5745
+ documentNodeId?: string | undefined;
5746
+ sourceSpanIds?: string[] | undefined;
5747
+ sourceTextHash?: string | undefined;
5386
5748
  pageNumber?: number | undefined;
5387
5749
  sectionRef?: string | undefined;
5388
5750
  originalContent?: string | undefined;
5389
5751
  recordId?: string | undefined;
5390
- sourceSpanIds?: string[] | undefined;
5391
- sourceTextHash?: string | undefined;
5392
5752
  formTitle?: string | undefined;
5393
5753
  }[] | undefined;
5394
5754
  coveredReasons?: {
@@ -5397,13 +5757,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5397
5757
  title?: string | undefined;
5398
5758
  conditions?: string[] | undefined;
5399
5759
  formNumber?: string | undefined;
5760
+ documentNodeId?: string | undefined;
5761
+ sourceSpanIds?: string[] | undefined;
5762
+ sourceTextHash?: string | undefined;
5400
5763
  appliesTo?: string[] | undefined;
5401
5764
  pageNumber?: number | undefined;
5402
5765
  sectionRef?: string | undefined;
5403
5766
  originalContent?: string | undefined;
5404
5767
  recordId?: string | undefined;
5405
- sourceSpanIds?: string[] | undefined;
5406
- sourceTextHash?: string | undefined;
5407
5768
  exceptions?: string[] | undefined;
5408
5769
  formTitle?: string | undefined;
5409
5770
  reasonNumber?: string | undefined;
@@ -5450,6 +5811,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5450
5811
  limit: string;
5451
5812
  included: boolean;
5452
5813
  formNumber?: string | undefined;
5814
+ documentNodeId?: string | undefined;
5815
+ sourceSpanIds?: string[] | undefined;
5816
+ sourceTextHash?: string | undefined;
5453
5817
  deductible?: string | undefined;
5454
5818
  limitAmount?: number | undefined;
5455
5819
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -5462,8 +5826,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5462
5826
  sectionRef?: string | undefined;
5463
5827
  originalContent?: string | undefined;
5464
5828
  recordId?: string | undefined;
5465
- sourceSpanIds?: string[] | undefined;
5466
- sourceTextHash?: string | undefined;
5467
5829
  coverageCode?: string | undefined;
5468
5830
  formEditionDate?: string | undefined;
5469
5831
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -5481,9 +5843,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5481
5843
  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";
5482
5844
  editionDate?: string | undefined;
5483
5845
  pageEnd?: number | undefined;
5484
- recordId?: string | undefined;
5846
+ documentNodeId?: string | undefined;
5485
5847
  sourceSpanIds?: string[] | undefined;
5486
5848
  sourceTextHash?: string | undefined;
5849
+ recordId?: string | undefined;
5487
5850
  effectiveDate?: string | undefined;
5488
5851
  affectedCoverageParts?: string[] | undefined;
5489
5852
  namedParties?: {
@@ -5509,11 +5872,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5509
5872
  name: string;
5510
5873
  content: string;
5511
5874
  formNumber?: string | undefined;
5875
+ documentNodeId?: string | undefined;
5876
+ sourceSpanIds?: string[] | undefined;
5877
+ sourceTextHash?: string | undefined;
5512
5878
  appliesTo?: string[] | undefined;
5513
5879
  pageNumber?: number | undefined;
5514
5880
  recordId?: string | undefined;
5515
- sourceSpanIds?: string[] | undefined;
5516
- sourceTextHash?: string | undefined;
5517
5881
  excludedPerils?: string[] | undefined;
5518
5882
  isAbsolute?: boolean | undefined;
5519
5883
  exceptions?: string[] | undefined;
@@ -5529,14 +5893,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5529
5893
  corridorDeductible?: string | undefined;
5530
5894
  waitingPeriod?: string | undefined;
5531
5895
  } | undefined;
5532
- formInventory?: {
5533
- formNumber: string;
5534
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
5535
- title?: string | undefined;
5536
- editionDate?: string | undefined;
5537
- pageStart?: number | undefined;
5538
- pageEnd?: number | undefined;
5539
- }[] | undefined;
5540
5896
  insurer?: {
5541
5897
  legalName: string;
5542
5898
  naicNumber?: string | undefined;
@@ -5657,6 +6013,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5657
6013
  name: string;
5658
6014
  amount: string;
5659
6015
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
6016
+ documentNodeId?: string | undefined;
6017
+ sourceSpanIds?: string[] | undefined;
6018
+ sourceTextHash?: string | undefined;
5660
6019
  amountValue?: number | undefined;
5661
6020
  description?: string | undefined;
5662
6021
  }[] | undefined;
@@ -5709,6 +6068,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5709
6068
  supplementaryFacts?: {
5710
6069
  value: string;
5711
6070
  key: string;
6071
+ documentNodeId?: string | undefined;
6072
+ sourceSpanIds?: string[] | undefined;
6073
+ sourceTextHash?: string | undefined;
5712
6074
  subject?: string | undefined;
5713
6075
  context?: string | undefined;
5714
6076
  }[] | undefined;
@@ -5739,13 +6101,22 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5739
6101
  line: z.ZodString;
5740
6102
  amount: z.ZodString;
5741
6103
  amountValue: z.ZodOptional<z.ZodNumber>;
6104
+ documentNodeId: z.ZodOptional<z.ZodString>;
6105
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6106
+ sourceTextHash: z.ZodOptional<z.ZodString>;
5742
6107
  }, "strip", z.ZodTypeAny, {
5743
6108
  amount: string;
5744
6109
  line: string;
6110
+ documentNodeId?: string | undefined;
6111
+ sourceSpanIds?: string[] | undefined;
6112
+ sourceTextHash?: string | undefined;
5745
6113
  amountValue?: number | undefined;
5746
6114
  }, {
5747
6115
  amount: string;
5748
6116
  line: string;
6117
+ documentNodeId?: string | undefined;
6118
+ sourceSpanIds?: string[] | undefined;
6119
+ sourceTextHash?: string | undefined;
5749
6120
  amountValue?: number | undefined;
5750
6121
  }>, "many">>;
5751
6122
  enrichedSubjectivities: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5822,12 +6193,16 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5822
6193
  sectionRef: z.ZodOptional<z.ZodString>;
5823
6194
  originalContent: z.ZodOptional<z.ZodString>;
5824
6195
  recordId: z.ZodOptional<z.ZodString>;
6196
+ documentNodeId: z.ZodOptional<z.ZodString>;
5825
6197
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5826
6198
  sourceTextHash: z.ZodOptional<z.ZodString>;
5827
6199
  }, "strip", z.ZodTypeAny, {
5828
6200
  name: string;
5829
6201
  limit: string;
5830
6202
  formNumber?: string | undefined;
6203
+ documentNodeId?: string | undefined;
6204
+ sourceSpanIds?: string[] | undefined;
6205
+ sourceTextHash?: string | undefined;
5831
6206
  deductible?: string | undefined;
5832
6207
  limitAmount?: number | undefined;
5833
6208
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -5840,12 +6215,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5840
6215
  sectionRef?: string | undefined;
5841
6216
  originalContent?: string | undefined;
5842
6217
  recordId?: string | undefined;
5843
- sourceSpanIds?: string[] | undefined;
5844
- sourceTextHash?: string | undefined;
5845
6218
  }, {
5846
6219
  name: string;
5847
6220
  limit: string;
5848
6221
  formNumber?: string | undefined;
6222
+ documentNodeId?: string | undefined;
6223
+ sourceSpanIds?: string[] | undefined;
6224
+ sourceTextHash?: string | undefined;
5849
6225
  deductible?: string | undefined;
5850
6226
  limitAmount?: number | undefined;
5851
6227
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -5858,9 +6234,180 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5858
6234
  sectionRef?: string | undefined;
5859
6235
  originalContent?: string | undefined;
5860
6236
  recordId?: string | undefined;
5861
- sourceSpanIds?: string[] | undefined;
5862
- sourceTextHash?: string | undefined;
5863
6237
  }>, "many">;
6238
+ documentMetadata: z.ZodObject<{
6239
+ sourceTreeVersion: z.ZodOptional<z.ZodString>;
6240
+ sourceTreeCanonical: z.ZodOptional<z.ZodBoolean>;
6241
+ formInventory: z.ZodOptional<z.ZodArray<z.ZodObject<{
6242
+ formNumber: z.ZodString;
6243
+ editionDate: z.ZodOptional<z.ZodString>;
6244
+ title: z.ZodOptional<z.ZodString>;
6245
+ formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
6246
+ pageStart: z.ZodOptional<z.ZodNumber>;
6247
+ pageEnd: z.ZodOptional<z.ZodNumber>;
6248
+ documentNodeId: z.ZodOptional<z.ZodString>;
6249
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6250
+ sourceTextHash: z.ZodOptional<z.ZodString>;
6251
+ }, "strip", z.ZodTypeAny, {
6252
+ formNumber: string;
6253
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6254
+ title?: string | undefined;
6255
+ editionDate?: string | undefined;
6256
+ pageStart?: number | undefined;
6257
+ pageEnd?: number | undefined;
6258
+ documentNodeId?: string | undefined;
6259
+ sourceSpanIds?: string[] | undefined;
6260
+ sourceTextHash?: string | undefined;
6261
+ }, {
6262
+ formNumber: string;
6263
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6264
+ title?: string | undefined;
6265
+ editionDate?: string | undefined;
6266
+ pageStart?: number | undefined;
6267
+ pageEnd?: number | undefined;
6268
+ documentNodeId?: string | undefined;
6269
+ sourceSpanIds?: string[] | undefined;
6270
+ sourceTextHash?: string | undefined;
6271
+ }>, "many">>;
6272
+ tableOfContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
6273
+ title: z.ZodString;
6274
+ level: z.ZodOptional<z.ZodNumber>;
6275
+ pageStart: z.ZodOptional<z.ZodNumber>;
6276
+ pageEnd: z.ZodOptional<z.ZodNumber>;
6277
+ documentNodeId: z.ZodOptional<z.ZodString>;
6278
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6279
+ }, "strip", z.ZodTypeAny, {
6280
+ title: string;
6281
+ pageStart?: number | undefined;
6282
+ pageEnd?: number | undefined;
6283
+ documentNodeId?: string | undefined;
6284
+ sourceSpanIds?: string[] | undefined;
6285
+ level?: number | undefined;
6286
+ }, {
6287
+ title: string;
6288
+ pageStart?: number | undefined;
6289
+ pageEnd?: number | undefined;
6290
+ documentNodeId?: string | undefined;
6291
+ sourceSpanIds?: string[] | undefined;
6292
+ level?: number | undefined;
6293
+ }>, "many">>;
6294
+ pageMap: z.ZodOptional<z.ZodArray<z.ZodObject<{
6295
+ page: z.ZodNumber;
6296
+ label: z.ZodOptional<z.ZodString>;
6297
+ formNumber: z.ZodOptional<z.ZodString>;
6298
+ formTitle: z.ZodOptional<z.ZodString>;
6299
+ sectionTitle: z.ZodOptional<z.ZodString>;
6300
+ extractorNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6301
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6302
+ }, "strip", z.ZodTypeAny, {
6303
+ page: number;
6304
+ formNumber?: string | undefined;
6305
+ sourceSpanIds?: string[] | undefined;
6306
+ formTitle?: string | undefined;
6307
+ label?: string | undefined;
6308
+ sectionTitle?: string | undefined;
6309
+ extractorNames?: string[] | undefined;
6310
+ }, {
6311
+ page: number;
6312
+ formNumber?: string | undefined;
6313
+ sourceSpanIds?: string[] | undefined;
6314
+ formTitle?: string | undefined;
6315
+ label?: string | undefined;
6316
+ sectionTitle?: string | undefined;
6317
+ extractorNames?: string[] | undefined;
6318
+ }>, "many">>;
6319
+ agentGuidance: z.ZodOptional<z.ZodArray<z.ZodObject<{
6320
+ kind: z.ZodString;
6321
+ title: z.ZodString;
6322
+ detail: z.ZodString;
6323
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6324
+ }, "strip", z.ZodTypeAny, {
6325
+ title: string;
6326
+ kind: string;
6327
+ detail: string;
6328
+ sourceSpanIds?: string[] | undefined;
6329
+ }, {
6330
+ title: string;
6331
+ kind: string;
6332
+ detail: string;
6333
+ sourceSpanIds?: string[] | undefined;
6334
+ }>, "many">>;
6335
+ }, "strip", z.ZodTypeAny, {
6336
+ sourceTreeVersion?: string | undefined;
6337
+ sourceTreeCanonical?: boolean | undefined;
6338
+ formInventory?: {
6339
+ formNumber: string;
6340
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6341
+ title?: string | undefined;
6342
+ editionDate?: string | undefined;
6343
+ pageStart?: number | undefined;
6344
+ pageEnd?: number | undefined;
6345
+ documentNodeId?: string | undefined;
6346
+ sourceSpanIds?: string[] | undefined;
6347
+ sourceTextHash?: string | undefined;
6348
+ }[] | undefined;
6349
+ tableOfContents?: {
6350
+ title: string;
6351
+ pageStart?: number | undefined;
6352
+ pageEnd?: number | undefined;
6353
+ documentNodeId?: string | undefined;
6354
+ sourceSpanIds?: string[] | undefined;
6355
+ level?: number | undefined;
6356
+ }[] | undefined;
6357
+ pageMap?: {
6358
+ page: number;
6359
+ formNumber?: string | undefined;
6360
+ sourceSpanIds?: string[] | undefined;
6361
+ formTitle?: string | undefined;
6362
+ label?: string | undefined;
6363
+ sectionTitle?: string | undefined;
6364
+ extractorNames?: string[] | undefined;
6365
+ }[] | undefined;
6366
+ agentGuidance?: {
6367
+ title: string;
6368
+ kind: string;
6369
+ detail: string;
6370
+ sourceSpanIds?: string[] | undefined;
6371
+ }[] | undefined;
6372
+ }, {
6373
+ sourceTreeVersion?: string | undefined;
6374
+ sourceTreeCanonical?: boolean | undefined;
6375
+ formInventory?: {
6376
+ formNumber: string;
6377
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
6378
+ title?: string | undefined;
6379
+ editionDate?: string | undefined;
6380
+ pageStart?: number | undefined;
6381
+ pageEnd?: number | undefined;
6382
+ documentNodeId?: string | undefined;
6383
+ sourceSpanIds?: string[] | undefined;
6384
+ sourceTextHash?: string | undefined;
6385
+ }[] | undefined;
6386
+ tableOfContents?: {
6387
+ title: string;
6388
+ pageStart?: number | undefined;
6389
+ pageEnd?: number | undefined;
6390
+ documentNodeId?: string | undefined;
6391
+ sourceSpanIds?: string[] | undefined;
6392
+ level?: number | undefined;
6393
+ }[] | undefined;
6394
+ pageMap?: {
6395
+ page: number;
6396
+ formNumber?: string | undefined;
6397
+ sourceSpanIds?: string[] | undefined;
6398
+ formTitle?: string | undefined;
6399
+ label?: string | undefined;
6400
+ sectionTitle?: string | undefined;
6401
+ extractorNames?: string[] | undefined;
6402
+ }[] | undefined;
6403
+ agentGuidance?: {
6404
+ title: string;
6405
+ kind: string;
6406
+ detail: string;
6407
+ sourceSpanIds?: string[] | undefined;
6408
+ }[] | undefined;
6409
+ }>;
6410
+ documentOutline: z.ZodArray<z.ZodType<DocumentNode, z.ZodTypeDef, DocumentNode>, "many">;
5864
6411
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
5865
6412
  title: z.ZodString;
5866
6413
  sectionNumber: z.ZodOptional<z.ZodString>;
@@ -5876,26 +6423,30 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5876
6423
  pageNumber: z.ZodOptional<z.ZodNumber>;
5877
6424
  excerpt: z.ZodOptional<z.ZodString>;
5878
6425
  content: z.ZodOptional<z.ZodString>;
6426
+ documentNodeId: z.ZodOptional<z.ZodString>;
5879
6427
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5880
6428
  sourceTextHash: z.ZodOptional<z.ZodString>;
5881
6429
  }, "strip", z.ZodTypeAny, {
5882
6430
  title: string;
5883
- pageNumber?: number | undefined;
6431
+ documentNodeId?: string | undefined;
5884
6432
  sourceSpanIds?: string[] | undefined;
5885
6433
  sourceTextHash?: string | undefined;
6434
+ pageNumber?: number | undefined;
5886
6435
  excerpt?: string | undefined;
5887
6436
  content?: string | undefined;
5888
6437
  sectionNumber?: string | undefined;
5889
6438
  }, {
5890
6439
  title: string;
5891
- pageNumber?: number | undefined;
6440
+ documentNodeId?: string | undefined;
5892
6441
  sourceSpanIds?: string[] | undefined;
5893
6442
  sourceTextHash?: string | undefined;
6443
+ pageNumber?: number | undefined;
5894
6444
  excerpt?: string | undefined;
5895
6445
  content?: string | undefined;
5896
6446
  sectionNumber?: string | undefined;
5897
6447
  }>, "many">>;
5898
6448
  recordId: z.ZodOptional<z.ZodString>;
6449
+ documentNodeId: z.ZodOptional<z.ZodString>;
5899
6450
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5900
6451
  sourceTextHash: z.ZodOptional<z.ZodString>;
5901
6452
  }, "strip", z.ZodTypeAny, {
@@ -5903,18 +6454,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5903
6454
  type: string;
5904
6455
  pageStart: number;
5905
6456
  pageEnd?: number | undefined;
5906
- recordId?: string | undefined;
6457
+ documentNodeId?: string | undefined;
5907
6458
  sourceSpanIds?: string[] | undefined;
5908
6459
  sourceTextHash?: string | undefined;
6460
+ recordId?: string | undefined;
5909
6461
  excerpt?: string | undefined;
5910
6462
  content?: string | undefined;
5911
6463
  sectionNumber?: string | undefined;
5912
6464
  coverageType?: string | undefined;
5913
6465
  subsections?: {
5914
6466
  title: string;
5915
- pageNumber?: number | undefined;
6467
+ documentNodeId?: string | undefined;
5916
6468
  sourceSpanIds?: string[] | undefined;
5917
6469
  sourceTextHash?: string | undefined;
6470
+ pageNumber?: number | undefined;
5918
6471
  excerpt?: string | undefined;
5919
6472
  content?: string | undefined;
5920
6473
  sectionNumber?: string | undefined;
@@ -5924,18 +6477,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5924
6477
  type: string;
5925
6478
  pageStart: number;
5926
6479
  pageEnd?: number | undefined;
5927
- recordId?: string | undefined;
6480
+ documentNodeId?: string | undefined;
5928
6481
  sourceSpanIds?: string[] | undefined;
5929
6482
  sourceTextHash?: string | undefined;
6483
+ recordId?: string | undefined;
5930
6484
  excerpt?: string | undefined;
5931
6485
  content?: string | undefined;
5932
6486
  sectionNumber?: string | undefined;
5933
6487
  coverageType?: string | undefined;
5934
6488
  subsections?: {
5935
6489
  title: string;
5936
- pageNumber?: number | undefined;
6490
+ documentNodeId?: string | undefined;
5937
6491
  sourceSpanIds?: string[] | undefined;
5938
6492
  sourceTextHash?: string | undefined;
6493
+ pageNumber?: number | undefined;
5939
6494
  excerpt?: string | undefined;
5940
6495
  content?: string | undefined;
5941
6496
  sectionNumber?: string | undefined;
@@ -5950,29 +6505,32 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5950
6505
  sectionRef: z.ZodOptional<z.ZodString>;
5951
6506
  originalContent: z.ZodOptional<z.ZodString>;
5952
6507
  recordId: z.ZodOptional<z.ZodString>;
6508
+ documentNodeId: z.ZodOptional<z.ZodString>;
5953
6509
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5954
6510
  sourceTextHash: z.ZodOptional<z.ZodString>;
5955
6511
  }, "strip", z.ZodTypeAny, {
5956
6512
  definition: string;
5957
6513
  term: string;
5958
6514
  formNumber?: string | undefined;
6515
+ documentNodeId?: string | undefined;
6516
+ sourceSpanIds?: string[] | undefined;
6517
+ sourceTextHash?: string | undefined;
5959
6518
  pageNumber?: number | undefined;
5960
6519
  sectionRef?: string | undefined;
5961
6520
  originalContent?: string | undefined;
5962
6521
  recordId?: string | undefined;
5963
- sourceSpanIds?: string[] | undefined;
5964
- sourceTextHash?: string | undefined;
5965
6522
  formTitle?: string | undefined;
5966
6523
  }, {
5967
6524
  definition: string;
5968
6525
  term: string;
5969
6526
  formNumber?: string | undefined;
6527
+ documentNodeId?: string | undefined;
6528
+ sourceSpanIds?: string[] | undefined;
6529
+ sourceTextHash?: string | undefined;
5970
6530
  pageNumber?: number | undefined;
5971
6531
  sectionRef?: string | undefined;
5972
6532
  originalContent?: string | undefined;
5973
6533
  recordId?: string | undefined;
5974
- sourceSpanIds?: string[] | undefined;
5975
- sourceTextHash?: string | undefined;
5976
6534
  formTitle?: string | undefined;
5977
6535
  }>, "many">>;
5978
6536
  coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5989,6 +6547,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5989
6547
  sectionRef: z.ZodOptional<z.ZodString>;
5990
6548
  originalContent: z.ZodOptional<z.ZodString>;
5991
6549
  recordId: z.ZodOptional<z.ZodString>;
6550
+ documentNodeId: z.ZodOptional<z.ZodString>;
5992
6551
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5993
6552
  sourceTextHash: z.ZodOptional<z.ZodString>;
5994
6553
  }, "strip", z.ZodTypeAny, {
@@ -5997,13 +6556,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5997
6556
  title?: string | undefined;
5998
6557
  conditions?: string[] | undefined;
5999
6558
  formNumber?: string | undefined;
6559
+ documentNodeId?: string | undefined;
6560
+ sourceSpanIds?: string[] | undefined;
6561
+ sourceTextHash?: string | undefined;
6000
6562
  appliesTo?: string[] | undefined;
6001
6563
  pageNumber?: number | undefined;
6002
6564
  sectionRef?: string | undefined;
6003
6565
  originalContent?: string | undefined;
6004
6566
  recordId?: string | undefined;
6005
- sourceSpanIds?: string[] | undefined;
6006
- sourceTextHash?: string | undefined;
6007
6567
  exceptions?: string[] | undefined;
6008
6568
  formTitle?: string | undefined;
6009
6569
  reasonNumber?: string | undefined;
@@ -6013,13 +6573,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6013
6573
  title?: string | undefined;
6014
6574
  conditions?: string[] | undefined;
6015
6575
  formNumber?: string | undefined;
6576
+ documentNodeId?: string | undefined;
6577
+ sourceSpanIds?: string[] | undefined;
6578
+ sourceTextHash?: string | undefined;
6016
6579
  appliesTo?: string[] | undefined;
6017
6580
  pageNumber?: number | undefined;
6018
6581
  sectionRef?: string | undefined;
6019
6582
  originalContent?: string | undefined;
6020
6583
  recordId?: string | undefined;
6021
- sourceSpanIds?: string[] | undefined;
6022
- sourceTextHash?: string | undefined;
6023
6584
  exceptions?: string[] | undefined;
6024
6585
  formTitle?: string | undefined;
6025
6586
  reasonNumber?: string | undefined;
@@ -6138,6 +6699,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6138
6699
  sectionRef: z.ZodOptional<z.ZodString>;
6139
6700
  originalContent: z.ZodOptional<z.ZodString>;
6140
6701
  recordId: z.ZodOptional<z.ZodString>;
6702
+ documentNodeId: z.ZodOptional<z.ZodString>;
6141
6703
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6142
6704
  sourceTextHash: z.ZodOptional<z.ZodString>;
6143
6705
  }, "strip", z.ZodTypeAny, {
@@ -6145,6 +6707,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6145
6707
  limit: string;
6146
6708
  included: boolean;
6147
6709
  formNumber?: string | undefined;
6710
+ documentNodeId?: string | undefined;
6711
+ sourceSpanIds?: string[] | undefined;
6712
+ sourceTextHash?: string | undefined;
6148
6713
  deductible?: string | undefined;
6149
6714
  limitAmount?: number | undefined;
6150
6715
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -6157,8 +6722,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6157
6722
  sectionRef?: string | undefined;
6158
6723
  originalContent?: string | undefined;
6159
6724
  recordId?: string | undefined;
6160
- sourceSpanIds?: string[] | undefined;
6161
- sourceTextHash?: string | undefined;
6162
6725
  coverageCode?: string | undefined;
6163
6726
  formEditionDate?: string | undefined;
6164
6727
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -6173,6 +6736,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6173
6736
  limit: string;
6174
6737
  included: boolean;
6175
6738
  formNumber?: string | undefined;
6739
+ documentNodeId?: string | undefined;
6740
+ sourceSpanIds?: string[] | undefined;
6741
+ sourceTextHash?: string | undefined;
6176
6742
  deductible?: string | undefined;
6177
6743
  limitAmount?: number | undefined;
6178
6744
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -6185,8 +6751,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6185
6751
  sectionRef?: string | undefined;
6186
6752
  originalContent?: string | undefined;
6187
6753
  recordId?: string | undefined;
6188
- sourceSpanIds?: string[] | undefined;
6189
- sourceTextHash?: string | undefined;
6190
6754
  coverageCode?: string | undefined;
6191
6755
  formEditionDate?: string | undefined;
6192
6756
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -6265,6 +6829,7 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6265
6829
  pageStart: z.ZodNumber;
6266
6830
  pageEnd: z.ZodOptional<z.ZodNumber>;
6267
6831
  recordId: z.ZodOptional<z.ZodString>;
6832
+ documentNodeId: z.ZodOptional<z.ZodString>;
6268
6833
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6269
6834
  sourceTextHash: z.ZodOptional<z.ZodString>;
6270
6835
  }, "strip", z.ZodTypeAny, {
@@ -6274,9 +6839,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6274
6839
  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";
6275
6840
  editionDate?: string | undefined;
6276
6841
  pageEnd?: number | undefined;
6277
- recordId?: string | undefined;
6842
+ documentNodeId?: string | undefined;
6278
6843
  sourceSpanIds?: string[] | undefined;
6279
6844
  sourceTextHash?: string | undefined;
6845
+ recordId?: string | undefined;
6280
6846
  effectiveDate?: string | undefined;
6281
6847
  affectedCoverageParts?: string[] | undefined;
6282
6848
  namedParties?: {
@@ -6304,9 +6870,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6304
6870
  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";
6305
6871
  editionDate?: string | undefined;
6306
6872
  pageEnd?: number | undefined;
6307
- recordId?: string | undefined;
6873
+ documentNodeId?: string | undefined;
6308
6874
  sourceSpanIds?: string[] | undefined;
6309
6875
  sourceTextHash?: string | undefined;
6876
+ recordId?: string | undefined;
6310
6877
  effectiveDate?: string | undefined;
6311
6878
  affectedCoverageParts?: string[] | undefined;
6312
6879
  namedParties?: {
@@ -6340,17 +6907,19 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6340
6907
  content: z.ZodString;
6341
6908
  pageNumber: z.ZodOptional<z.ZodNumber>;
6342
6909
  recordId: z.ZodOptional<z.ZodString>;
6910
+ documentNodeId: z.ZodOptional<z.ZodString>;
6343
6911
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6344
6912
  sourceTextHash: z.ZodOptional<z.ZodString>;
6345
6913
  }, "strip", z.ZodTypeAny, {
6346
6914
  name: string;
6347
6915
  content: string;
6348
6916
  formNumber?: string | undefined;
6917
+ documentNodeId?: string | undefined;
6918
+ sourceSpanIds?: string[] | undefined;
6919
+ sourceTextHash?: string | undefined;
6349
6920
  appliesTo?: string[] | undefined;
6350
6921
  pageNumber?: number | undefined;
6351
6922
  recordId?: string | undefined;
6352
- sourceSpanIds?: string[] | undefined;
6353
- sourceTextHash?: string | undefined;
6354
6923
  excludedPerils?: string[] | undefined;
6355
6924
  isAbsolute?: boolean | undefined;
6356
6925
  exceptions?: string[] | undefined;
@@ -6360,11 +6929,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6360
6929
  name: string;
6361
6930
  content: string;
6362
6931
  formNumber?: string | undefined;
6932
+ documentNodeId?: string | undefined;
6933
+ sourceSpanIds?: string[] | undefined;
6934
+ sourceTextHash?: string | undefined;
6363
6935
  appliesTo?: string[] | undefined;
6364
6936
  pageNumber?: number | undefined;
6365
6937
  recordId?: string | undefined;
6366
- sourceSpanIds?: string[] | undefined;
6367
- sourceTextHash?: string | undefined;
6368
6938
  excludedPerils?: string[] | undefined;
6369
6939
  isAbsolute?: boolean | undefined;
6370
6940
  exceptions?: string[] | undefined;
@@ -6387,16 +6957,18 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6387
6957
  }>, "many">>;
6388
6958
  pageNumber: z.ZodOptional<z.ZodNumber>;
6389
6959
  recordId: z.ZodOptional<z.ZodString>;
6960
+ documentNodeId: z.ZodOptional<z.ZodString>;
6390
6961
  sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6391
6962
  sourceTextHash: z.ZodOptional<z.ZodString>;
6392
6963
  }, "strip", z.ZodTypeAny, {
6393
6964
  name: string;
6394
6965
  content: string;
6395
6966
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
6396
- pageNumber?: number | undefined;
6397
- recordId?: string | undefined;
6967
+ documentNodeId?: string | undefined;
6398
6968
  sourceSpanIds?: string[] | undefined;
6399
6969
  sourceTextHash?: string | undefined;
6970
+ pageNumber?: number | undefined;
6971
+ recordId?: string | undefined;
6400
6972
  keyValues?: {
6401
6973
  value: string;
6402
6974
  key: string;
@@ -6405,10 +6977,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6405
6977
  name: string;
6406
6978
  content: string;
6407
6979
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
6408
- pageNumber?: number | undefined;
6409
- recordId?: string | undefined;
6980
+ documentNodeId?: string | undefined;
6410
6981
  sourceSpanIds?: string[] | undefined;
6411
6982
  sourceTextHash?: string | undefined;
6983
+ pageNumber?: number | undefined;
6984
+ recordId?: string | undefined;
6412
6985
  keyValues?: {
6413
6986
  value: string;
6414
6987
  key: string;
@@ -6737,6 +7310,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6737
7310
  formType: z.ZodEnum<["coverage", "endorsement", "declarations", "application", "notice", "other"]>;
6738
7311
  pageStart: z.ZodOptional<z.ZodNumber>;
6739
7312
  pageEnd: z.ZodOptional<z.ZodNumber>;
7313
+ documentNodeId: z.ZodOptional<z.ZodString>;
7314
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7315
+ sourceTextHash: z.ZodOptional<z.ZodString>;
6740
7316
  }, "strip", z.ZodTypeAny, {
6741
7317
  formNumber: string;
6742
7318
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
@@ -6744,6 +7320,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6744
7320
  editionDate?: string | undefined;
6745
7321
  pageStart?: number | undefined;
6746
7322
  pageEnd?: number | undefined;
7323
+ documentNodeId?: string | undefined;
7324
+ sourceSpanIds?: string[] | undefined;
7325
+ sourceTextHash?: string | undefined;
6747
7326
  }, {
6748
7327
  formNumber: string;
6749
7328
  formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
@@ -6751,6 +7330,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
6751
7330
  editionDate?: string | undefined;
6752
7331
  pageStart?: number | undefined;
6753
7332
  pageEnd?: number | undefined;
7333
+ documentNodeId?: string | undefined;
7334
+ sourceSpanIds?: string[] | undefined;
7335
+ sourceTextHash?: string | undefined;
6754
7336
  }>, "many">>;
6755
7337
  declarations: z.ZodOptional<z.ZodDiscriminatedUnion<"line", [z.ZodObject<{
6756
7338
  line: z.ZodLiteral<"homeowners">;
@@ -9350,16 +9932,25 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
9350
9932
  amountValue: z.ZodOptional<z.ZodNumber>;
9351
9933
  type: z.ZodOptional<z.ZodEnum<["tax", "fee", "surcharge", "assessment"]>>;
9352
9934
  description: z.ZodOptional<z.ZodString>;
9935
+ documentNodeId: z.ZodOptional<z.ZodString>;
9936
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9937
+ sourceTextHash: z.ZodOptional<z.ZodString>;
9353
9938
  }, "strip", z.ZodTypeAny, {
9354
9939
  name: string;
9355
9940
  amount: string;
9356
9941
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
9942
+ documentNodeId?: string | undefined;
9943
+ sourceSpanIds?: string[] | undefined;
9944
+ sourceTextHash?: string | undefined;
9357
9945
  amountValue?: number | undefined;
9358
9946
  description?: string | undefined;
9359
9947
  }, {
9360
9948
  name: string;
9361
9949
  amount: string;
9362
9950
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
9951
+ documentNodeId?: string | undefined;
9952
+ sourceSpanIds?: string[] | undefined;
9953
+ sourceTextHash?: string | undefined;
9363
9954
  amountValue?: number | undefined;
9364
9955
  description?: string | undefined;
9365
9956
  }>, "many">>;
@@ -9499,14 +10090,23 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
9499
10090
  value: z.ZodString;
9500
10091
  subject: z.ZodOptional<z.ZodString>;
9501
10092
  context: z.ZodOptional<z.ZodString>;
10093
+ documentNodeId: z.ZodOptional<z.ZodString>;
10094
+ sourceSpanIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10095
+ sourceTextHash: z.ZodOptional<z.ZodString>;
9502
10096
  }, "strip", z.ZodTypeAny, {
9503
10097
  value: string;
9504
10098
  key: string;
10099
+ documentNodeId?: string | undefined;
10100
+ sourceSpanIds?: string[] | undefined;
10101
+ sourceTextHash?: string | undefined;
9505
10102
  subject?: string | undefined;
9506
10103
  context?: string | undefined;
9507
10104
  }, {
9508
10105
  value: string;
9509
10106
  key: string;
10107
+ documentNodeId?: string | undefined;
10108
+ sourceSpanIds?: string[] | undefined;
10109
+ sourceTextHash?: string | undefined;
9510
10110
  subject?: string | undefined;
9511
10111
  context?: string | undefined;
9512
10112
  }>, "many">>;
@@ -9516,6 +10116,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
9516
10116
  name: string;
9517
10117
  limit: string;
9518
10118
  formNumber?: string | undefined;
10119
+ documentNodeId?: string | undefined;
10120
+ sourceSpanIds?: string[] | undefined;
10121
+ sourceTextHash?: string | undefined;
9519
10122
  deductible?: string | undefined;
9520
10123
  limitAmount?: number | undefined;
9521
10124
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -9528,12 +10131,49 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
9528
10131
  sectionRef?: string | undefined;
9529
10132
  originalContent?: string | undefined;
9530
10133
  recordId?: string | undefined;
9531
- sourceSpanIds?: string[] | undefined;
9532
- sourceTextHash?: string | undefined;
9533
10134
  }[];
9534
10135
  carrier: string;
9535
10136
  id: string;
9536
10137
  insuredName: string;
10138
+ documentMetadata: {
10139
+ sourceTreeVersion?: string | undefined;
10140
+ sourceTreeCanonical?: boolean | undefined;
10141
+ formInventory?: {
10142
+ formNumber: string;
10143
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
10144
+ title?: string | undefined;
10145
+ editionDate?: string | undefined;
10146
+ pageStart?: number | undefined;
10147
+ pageEnd?: number | undefined;
10148
+ documentNodeId?: string | undefined;
10149
+ sourceSpanIds?: string[] | undefined;
10150
+ sourceTextHash?: string | undefined;
10151
+ }[] | undefined;
10152
+ tableOfContents?: {
10153
+ title: string;
10154
+ pageStart?: number | undefined;
10155
+ pageEnd?: number | undefined;
10156
+ documentNodeId?: string | undefined;
10157
+ sourceSpanIds?: string[] | undefined;
10158
+ level?: number | undefined;
10159
+ }[] | undefined;
10160
+ pageMap?: {
10161
+ page: number;
10162
+ formNumber?: string | undefined;
10163
+ sourceSpanIds?: string[] | undefined;
10164
+ formTitle?: string | undefined;
10165
+ label?: string | undefined;
10166
+ sectionTitle?: string | undefined;
10167
+ extractorNames?: string[] | undefined;
10168
+ }[] | undefined;
10169
+ agentGuidance?: {
10170
+ title: string;
10171
+ kind: string;
10172
+ detail: string;
10173
+ sourceSpanIds?: string[] | undefined;
10174
+ }[] | undefined;
10175
+ };
10176
+ documentOutline: DocumentNode[];
9537
10177
  quoteNumber: string;
9538
10178
  declarations?: {
9539
10179
  formType: "HO-3" | "HO-5" | "HO-4" | "HO-6" | "HO-7" | "HO-8";
@@ -10034,10 +10674,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10034
10674
  name: string;
10035
10675
  content: string;
10036
10676
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
10037
- pageNumber?: number | undefined;
10038
- recordId?: string | undefined;
10677
+ documentNodeId?: string | undefined;
10039
10678
  sourceSpanIds?: string[] | undefined;
10040
10679
  sourceTextHash?: string | undefined;
10680
+ pageNumber?: number | undefined;
10681
+ recordId?: string | undefined;
10041
10682
  keyValues?: {
10042
10683
  value: string;
10043
10684
  key: string;
@@ -10140,6 +10781,17 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10140
10781
  supplementalYears?: number | undefined;
10141
10782
  supplementalPremium?: string | undefined;
10142
10783
  } | undefined;
10784
+ formInventory?: {
10785
+ formNumber: string;
10786
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
10787
+ title?: string | undefined;
10788
+ editionDate?: string | undefined;
10789
+ pageStart?: number | undefined;
10790
+ pageEnd?: number | undefined;
10791
+ documentNodeId?: string | undefined;
10792
+ sourceSpanIds?: string[] | undefined;
10793
+ sourceTextHash?: string | undefined;
10794
+ }[] | undefined;
10143
10795
  security?: string | undefined;
10144
10796
  premiumAmount?: number | undefined;
10145
10797
  summary?: string | undefined;
@@ -10149,18 +10801,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10149
10801
  type: string;
10150
10802
  pageStart: number;
10151
10803
  pageEnd?: number | undefined;
10152
- recordId?: string | undefined;
10804
+ documentNodeId?: string | undefined;
10153
10805
  sourceSpanIds?: string[] | undefined;
10154
10806
  sourceTextHash?: string | undefined;
10807
+ recordId?: string | undefined;
10155
10808
  excerpt?: string | undefined;
10156
10809
  content?: string | undefined;
10157
10810
  sectionNumber?: string | undefined;
10158
10811
  coverageType?: string | undefined;
10159
10812
  subsections?: {
10160
10813
  title: string;
10161
- pageNumber?: number | undefined;
10814
+ documentNodeId?: string | undefined;
10162
10815
  sourceSpanIds?: string[] | undefined;
10163
10816
  sourceTextHash?: string | undefined;
10817
+ pageNumber?: number | undefined;
10164
10818
  excerpt?: string | undefined;
10165
10819
  content?: string | undefined;
10166
10820
  sectionNumber?: string | undefined;
@@ -10170,12 +10824,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10170
10824
  definition: string;
10171
10825
  term: string;
10172
10826
  formNumber?: string | undefined;
10827
+ documentNodeId?: string | undefined;
10828
+ sourceSpanIds?: string[] | undefined;
10829
+ sourceTextHash?: string | undefined;
10173
10830
  pageNumber?: number | undefined;
10174
10831
  sectionRef?: string | undefined;
10175
10832
  originalContent?: string | undefined;
10176
10833
  recordId?: string | undefined;
10177
- sourceSpanIds?: string[] | undefined;
10178
- sourceTextHash?: string | undefined;
10179
10834
  formTitle?: string | undefined;
10180
10835
  }[] | undefined;
10181
10836
  coveredReasons?: {
@@ -10184,13 +10839,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10184
10839
  title?: string | undefined;
10185
10840
  conditions?: string[] | undefined;
10186
10841
  formNumber?: string | undefined;
10842
+ documentNodeId?: string | undefined;
10843
+ sourceSpanIds?: string[] | undefined;
10844
+ sourceTextHash?: string | undefined;
10187
10845
  appliesTo?: string[] | undefined;
10188
10846
  pageNumber?: number | undefined;
10189
10847
  sectionRef?: string | undefined;
10190
10848
  originalContent?: string | undefined;
10191
10849
  recordId?: string | undefined;
10192
- sourceSpanIds?: string[] | undefined;
10193
- sourceTextHash?: string | undefined;
10194
10850
  exceptions?: string[] | undefined;
10195
10851
  formTitle?: string | undefined;
10196
10852
  reasonNumber?: string | undefined;
@@ -10237,6 +10893,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10237
10893
  limit: string;
10238
10894
  included: boolean;
10239
10895
  formNumber?: string | undefined;
10896
+ documentNodeId?: string | undefined;
10897
+ sourceSpanIds?: string[] | undefined;
10898
+ sourceTextHash?: string | undefined;
10240
10899
  deductible?: string | undefined;
10241
10900
  limitAmount?: number | undefined;
10242
10901
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -10249,8 +10908,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10249
10908
  sectionRef?: string | undefined;
10250
10909
  originalContent?: string | undefined;
10251
10910
  recordId?: string | undefined;
10252
- sourceSpanIds?: string[] | undefined;
10253
- sourceTextHash?: string | undefined;
10254
10911
  coverageCode?: string | undefined;
10255
10912
  formEditionDate?: string | undefined;
10256
10913
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -10268,9 +10925,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10268
10925
  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";
10269
10926
  editionDate?: string | undefined;
10270
10927
  pageEnd?: number | undefined;
10271
- recordId?: string | undefined;
10928
+ documentNodeId?: string | undefined;
10272
10929
  sourceSpanIds?: string[] | undefined;
10273
10930
  sourceTextHash?: string | undefined;
10931
+ recordId?: string | undefined;
10274
10932
  effectiveDate?: string | undefined;
10275
10933
  affectedCoverageParts?: string[] | undefined;
10276
10934
  namedParties?: {
@@ -10296,11 +10954,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10296
10954
  name: string;
10297
10955
  content: string;
10298
10956
  formNumber?: string | undefined;
10957
+ documentNodeId?: string | undefined;
10958
+ sourceSpanIds?: string[] | undefined;
10959
+ sourceTextHash?: string | undefined;
10299
10960
  appliesTo?: string[] | undefined;
10300
10961
  pageNumber?: number | undefined;
10301
10962
  recordId?: string | undefined;
10302
- sourceSpanIds?: string[] | undefined;
10303
- sourceTextHash?: string | undefined;
10304
10963
  excludedPerils?: string[] | undefined;
10305
10964
  isAbsolute?: boolean | undefined;
10306
10965
  exceptions?: string[] | undefined;
@@ -10316,14 +10975,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10316
10975
  corridorDeductible?: string | undefined;
10317
10976
  waitingPeriod?: string | undefined;
10318
10977
  } | undefined;
10319
- formInventory?: {
10320
- formNumber: string;
10321
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
10322
- title?: string | undefined;
10323
- editionDate?: string | undefined;
10324
- pageStart?: number | undefined;
10325
- pageEnd?: number | undefined;
10326
- }[] | undefined;
10327
10978
  insurer?: {
10328
10979
  legalName: string;
10329
10980
  naicNumber?: string | undefined;
@@ -10444,6 +11095,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10444
11095
  name: string;
10445
11096
  amount: string;
10446
11097
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
11098
+ documentNodeId?: string | undefined;
11099
+ sourceSpanIds?: string[] | undefined;
11100
+ sourceTextHash?: string | undefined;
10447
11101
  amountValue?: number | undefined;
10448
11102
  description?: string | undefined;
10449
11103
  }[] | undefined;
@@ -10496,6 +11150,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10496
11150
  supplementaryFacts?: {
10497
11151
  value: string;
10498
11152
  key: string;
11153
+ documentNodeId?: string | undefined;
11154
+ sourceSpanIds?: string[] | undefined;
11155
+ sourceTextHash?: string | undefined;
10499
11156
  subject?: string | undefined;
10500
11157
  context?: string | undefined;
10501
11158
  }[] | undefined;
@@ -10512,6 +11169,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10512
11169
  premiumBreakdown?: {
10513
11170
  amount: string;
10514
11171
  line: string;
11172
+ documentNodeId?: string | undefined;
11173
+ sourceSpanIds?: string[] | undefined;
11174
+ sourceTextHash?: string | undefined;
10515
11175
  amountValue?: number | undefined;
10516
11176
  }[] | undefined;
10517
11177
  enrichedSubjectivities?: {
@@ -10540,6 +11200,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10540
11200
  name: string;
10541
11201
  limit: string;
10542
11202
  formNumber?: string | undefined;
11203
+ documentNodeId?: string | undefined;
11204
+ sourceSpanIds?: string[] | undefined;
11205
+ sourceTextHash?: string | undefined;
10543
11206
  deductible?: string | undefined;
10544
11207
  limitAmount?: number | undefined;
10545
11208
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -10552,12 +11215,49 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
10552
11215
  sectionRef?: string | undefined;
10553
11216
  originalContent?: string | undefined;
10554
11217
  recordId?: string | undefined;
10555
- sourceSpanIds?: string[] | undefined;
10556
- sourceTextHash?: string | undefined;
10557
11218
  }[];
10558
11219
  carrier: string;
10559
11220
  id: string;
10560
11221
  insuredName: string;
11222
+ documentMetadata: {
11223
+ sourceTreeVersion?: string | undefined;
11224
+ sourceTreeCanonical?: boolean | undefined;
11225
+ formInventory?: {
11226
+ formNumber: string;
11227
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
11228
+ title?: string | undefined;
11229
+ editionDate?: string | undefined;
11230
+ pageStart?: number | undefined;
11231
+ pageEnd?: number | undefined;
11232
+ documentNodeId?: string | undefined;
11233
+ sourceSpanIds?: string[] | undefined;
11234
+ sourceTextHash?: string | undefined;
11235
+ }[] | undefined;
11236
+ tableOfContents?: {
11237
+ title: string;
11238
+ pageStart?: number | undefined;
11239
+ pageEnd?: number | undefined;
11240
+ documentNodeId?: string | undefined;
11241
+ sourceSpanIds?: string[] | undefined;
11242
+ level?: number | undefined;
11243
+ }[] | undefined;
11244
+ pageMap?: {
11245
+ page: number;
11246
+ formNumber?: string | undefined;
11247
+ sourceSpanIds?: string[] | undefined;
11248
+ formTitle?: string | undefined;
11249
+ label?: string | undefined;
11250
+ sectionTitle?: string | undefined;
11251
+ extractorNames?: string[] | undefined;
11252
+ }[] | undefined;
11253
+ agentGuidance?: {
11254
+ title: string;
11255
+ kind: string;
11256
+ detail: string;
11257
+ sourceSpanIds?: string[] | undefined;
11258
+ }[] | undefined;
11259
+ };
11260
+ documentOutline: DocumentNode[];
10561
11261
  quoteNumber: string;
10562
11262
  declarations?: {
10563
11263
  formType: "HO-3" | "HO-5" | "HO-4" | "HO-6" | "HO-7" | "HO-8";
@@ -11058,10 +11758,11 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11058
11758
  name: string;
11059
11759
  content: string;
11060
11760
  conditionType: "other" | "duties_after_loss" | "notice_requirements" | "other_insurance" | "cancellation" | "nonrenewal" | "transfer_of_rights" | "liberalization" | "arbitration" | "concealment_fraud" | "examination_under_oath" | "legal_action" | "loss_payment" | "appraisal" | "mortgage_holders" | "policy_territory" | "separation_of_insureds";
11061
- pageNumber?: number | undefined;
11062
- recordId?: string | undefined;
11761
+ documentNodeId?: string | undefined;
11063
11762
  sourceSpanIds?: string[] | undefined;
11064
11763
  sourceTextHash?: string | undefined;
11764
+ pageNumber?: number | undefined;
11765
+ recordId?: string | undefined;
11065
11766
  keyValues?: {
11066
11767
  value: string;
11067
11768
  key: string;
@@ -11164,6 +11865,17 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11164
11865
  supplementalYears?: number | undefined;
11165
11866
  supplementalPremium?: string | undefined;
11166
11867
  } | undefined;
11868
+ formInventory?: {
11869
+ formNumber: string;
11870
+ formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
11871
+ title?: string | undefined;
11872
+ editionDate?: string | undefined;
11873
+ pageStart?: number | undefined;
11874
+ pageEnd?: number | undefined;
11875
+ documentNodeId?: string | undefined;
11876
+ sourceSpanIds?: string[] | undefined;
11877
+ sourceTextHash?: string | undefined;
11878
+ }[] | undefined;
11167
11879
  security?: string | undefined;
11168
11880
  premiumAmount?: number | undefined;
11169
11881
  summary?: string | undefined;
@@ -11173,18 +11885,20 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11173
11885
  type: string;
11174
11886
  pageStart: number;
11175
11887
  pageEnd?: number | undefined;
11176
- recordId?: string | undefined;
11888
+ documentNodeId?: string | undefined;
11177
11889
  sourceSpanIds?: string[] | undefined;
11178
11890
  sourceTextHash?: string | undefined;
11891
+ recordId?: string | undefined;
11179
11892
  excerpt?: string | undefined;
11180
11893
  content?: string | undefined;
11181
11894
  sectionNumber?: string | undefined;
11182
11895
  coverageType?: string | undefined;
11183
11896
  subsections?: {
11184
11897
  title: string;
11185
- pageNumber?: number | undefined;
11898
+ documentNodeId?: string | undefined;
11186
11899
  sourceSpanIds?: string[] | undefined;
11187
11900
  sourceTextHash?: string | undefined;
11901
+ pageNumber?: number | undefined;
11188
11902
  excerpt?: string | undefined;
11189
11903
  content?: string | undefined;
11190
11904
  sectionNumber?: string | undefined;
@@ -11194,12 +11908,13 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11194
11908
  definition: string;
11195
11909
  term: string;
11196
11910
  formNumber?: string | undefined;
11911
+ documentNodeId?: string | undefined;
11912
+ sourceSpanIds?: string[] | undefined;
11913
+ sourceTextHash?: string | undefined;
11197
11914
  pageNumber?: number | undefined;
11198
11915
  sectionRef?: string | undefined;
11199
11916
  originalContent?: string | undefined;
11200
11917
  recordId?: string | undefined;
11201
- sourceSpanIds?: string[] | undefined;
11202
- sourceTextHash?: string | undefined;
11203
11918
  formTitle?: string | undefined;
11204
11919
  }[] | undefined;
11205
11920
  coveredReasons?: {
@@ -11208,13 +11923,14 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11208
11923
  title?: string | undefined;
11209
11924
  conditions?: string[] | undefined;
11210
11925
  formNumber?: string | undefined;
11926
+ documentNodeId?: string | undefined;
11927
+ sourceSpanIds?: string[] | undefined;
11928
+ sourceTextHash?: string | undefined;
11211
11929
  appliesTo?: string[] | undefined;
11212
11930
  pageNumber?: number | undefined;
11213
11931
  sectionRef?: string | undefined;
11214
11932
  originalContent?: string | undefined;
11215
11933
  recordId?: string | undefined;
11216
- sourceSpanIds?: string[] | undefined;
11217
- sourceTextHash?: string | undefined;
11218
11934
  exceptions?: string[] | undefined;
11219
11935
  formTitle?: string | undefined;
11220
11936
  reasonNumber?: string | undefined;
@@ -11261,6 +11977,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11261
11977
  limit: string;
11262
11978
  included: boolean;
11263
11979
  formNumber?: string | undefined;
11980
+ documentNodeId?: string | undefined;
11981
+ sourceSpanIds?: string[] | undefined;
11982
+ sourceTextHash?: string | undefined;
11264
11983
  deductible?: string | undefined;
11265
11984
  limitAmount?: number | undefined;
11266
11985
  limitType?: "per_occurrence" | "per_claim" | "aggregate" | "per_person" | "per_accident" | "statutory" | "blanket" | "scheduled" | undefined;
@@ -11273,8 +11992,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11273
11992
  sectionRef?: string | undefined;
11274
11993
  originalContent?: string | undefined;
11275
11994
  recordId?: string | undefined;
11276
- sourceSpanIds?: string[] | undefined;
11277
- sourceTextHash?: string | undefined;
11278
11995
  coverageCode?: string | undefined;
11279
11996
  formEditionDate?: string | undefined;
11280
11997
  deductibleType?: "per_occurrence" | "per_claim" | "aggregate" | "percentage" | "waiting_period" | undefined;
@@ -11292,9 +12009,10 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11292
12009
  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";
11293
12010
  editionDate?: string | undefined;
11294
12011
  pageEnd?: number | undefined;
11295
- recordId?: string | undefined;
12012
+ documentNodeId?: string | undefined;
11296
12013
  sourceSpanIds?: string[] | undefined;
11297
12014
  sourceTextHash?: string | undefined;
12015
+ recordId?: string | undefined;
11298
12016
  effectiveDate?: string | undefined;
11299
12017
  affectedCoverageParts?: string[] | undefined;
11300
12018
  namedParties?: {
@@ -11320,11 +12038,12 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11320
12038
  name: string;
11321
12039
  content: string;
11322
12040
  formNumber?: string | undefined;
12041
+ documentNodeId?: string | undefined;
12042
+ sourceSpanIds?: string[] | undefined;
12043
+ sourceTextHash?: string | undefined;
11323
12044
  appliesTo?: string[] | undefined;
11324
12045
  pageNumber?: number | undefined;
11325
12046
  recordId?: string | undefined;
11326
- sourceSpanIds?: string[] | undefined;
11327
- sourceTextHash?: string | undefined;
11328
12047
  excludedPerils?: string[] | undefined;
11329
12048
  isAbsolute?: boolean | undefined;
11330
12049
  exceptions?: string[] | undefined;
@@ -11340,14 +12059,6 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11340
12059
  corridorDeductible?: string | undefined;
11341
12060
  waitingPeriod?: string | undefined;
11342
12061
  } | undefined;
11343
- formInventory?: {
11344
- formNumber: string;
11345
- formType: "other" | "declarations" | "endorsement" | "application" | "notice" | "coverage";
11346
- title?: string | undefined;
11347
- editionDate?: string | undefined;
11348
- pageStart?: number | undefined;
11349
- pageEnd?: number | undefined;
11350
- }[] | undefined;
11351
12062
  insurer?: {
11352
12063
  legalName: string;
11353
12064
  naicNumber?: string | undefined;
@@ -11468,6 +12179,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11468
12179
  name: string;
11469
12180
  amount: string;
11470
12181
  type?: "tax" | "fee" | "surcharge" | "assessment" | undefined;
12182
+ documentNodeId?: string | undefined;
12183
+ sourceSpanIds?: string[] | undefined;
12184
+ sourceTextHash?: string | undefined;
11471
12185
  amountValue?: number | undefined;
11472
12186
  description?: string | undefined;
11473
12187
  }[] | undefined;
@@ -11520,6 +12234,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11520
12234
  supplementaryFacts?: {
11521
12235
  value: string;
11522
12236
  key: string;
12237
+ documentNodeId?: string | undefined;
12238
+ sourceSpanIds?: string[] | undefined;
12239
+ sourceTextHash?: string | undefined;
11523
12240
  subject?: string | undefined;
11524
12241
  context?: string | undefined;
11525
12242
  }[] | undefined;
@@ -11536,6 +12253,9 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
11536
12253
  premiumBreakdown?: {
11537
12254
  amount: string;
11538
12255
  line: string;
12256
+ documentNodeId?: string | undefined;
12257
+ sourceSpanIds?: string[] | undefined;
12258
+ sourceTextHash?: string | undefined;
11539
12259
  amountValue?: number | undefined;
11540
12260
  }[] | undefined;
11541
12261
  enrichedSubjectivities?: {
@@ -11703,10 +12423,10 @@ declare const SourceSpanSchema: z.ZodObject<{
11703
12423
  }>>;
11704
12424
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11705
12425
  }, "strip", z.ZodTypeAny, {
12426
+ kind: "pdf_text" | "pdf_image" | "html" | "markdown" | "plain_text" | "structured_field";
11706
12427
  id: string;
11707
12428
  text: string;
11708
12429
  documentId: string;
11709
- kind: "pdf_text" | "pdf_image" | "html" | "markdown" | "plain_text" | "structured_field";
11710
12430
  hash: string;
11711
12431
  formNumber?: string | undefined;
11712
12432
  pageStart?: number | undefined;
@@ -11734,7 +12454,7 @@ declare const SourceSpanSchema: z.ZodObject<{
11734
12454
  chunkId?: string | undefined;
11735
12455
  textHash?: string | undefined;
11736
12456
  sectionId?: string | undefined;
11737
- sourceUnit?: "section" | "page" | "table" | "table_row" | "table_cell" | "key_value" | "text" | undefined;
12457
+ sourceUnit?: "page" | "section" | "table" | "table_row" | "table_cell" | "key_value" | "text" | undefined;
11738
12458
  parentSpanId?: string | undefined;
11739
12459
  bbox?: {
11740
12460
  page: number;
@@ -11745,10 +12465,10 @@ declare const SourceSpanSchema: z.ZodObject<{
11745
12465
  }[] | undefined;
11746
12466
  metadata?: Record<string, string> | undefined;
11747
12467
  }, {
12468
+ kind: "pdf_text" | "pdf_image" | "html" | "markdown" | "plain_text" | "structured_field";
11748
12469
  id: string;
11749
12470
  text: string;
11750
12471
  documentId: string;
11751
- kind: "pdf_text" | "pdf_image" | "html" | "markdown" | "plain_text" | "structured_field";
11752
12472
  hash: string;
11753
12473
  formNumber?: string | undefined;
11754
12474
  pageStart?: number | undefined;
@@ -11776,7 +12496,7 @@ declare const SourceSpanSchema: z.ZodObject<{
11776
12496
  chunkId?: string | undefined;
11777
12497
  textHash?: string | undefined;
11778
12498
  sectionId?: string | undefined;
11779
- sourceUnit?: "section" | "page" | "table" | "table_row" | "table_cell" | "key_value" | "text" | undefined;
12499
+ sourceUnit?: "page" | "section" | "table" | "table_row" | "table_cell" | "key_value" | "text" | undefined;
11780
12500
  parentSpanId?: string | undefined;
11781
12501
  bbox?: {
11782
12502
  page: number;
@@ -11817,6 +12537,83 @@ declare const SourceChunkSchema: z.ZodObject<{
11817
12537
  metadata?: Record<string, string> | undefined;
11818
12538
  }>;
11819
12539
  type SourceChunk = z.infer<typeof SourceChunkSchema>;
12540
+ declare const DocumentSourceNodeSchema: z.ZodObject<{
12541
+ id: z.ZodString;
12542
+ documentId: z.ZodString;
12543
+ parentId: z.ZodOptional<z.ZodString>;
12544
+ kind: z.ZodEnum<["document", "page_group", "page", "form", "endorsement", "section", "schedule", "clause", "table", "table_row", "table_cell", "text"]>;
12545
+ title: z.ZodString;
12546
+ description: z.ZodString;
12547
+ textExcerpt: z.ZodOptional<z.ZodString>;
12548
+ sourceSpanIds: z.ZodArray<z.ZodString, "many">;
12549
+ pageStart: z.ZodOptional<z.ZodNumber>;
12550
+ pageEnd: z.ZodOptional<z.ZodNumber>;
12551
+ bbox: z.ZodOptional<z.ZodArray<z.ZodObject<{
12552
+ page: z.ZodNumber;
12553
+ x: z.ZodNumber;
12554
+ y: z.ZodNumber;
12555
+ width: z.ZodNumber;
12556
+ height: z.ZodNumber;
12557
+ }, "strip", z.ZodTypeAny, {
12558
+ page: number;
12559
+ x: number;
12560
+ y: number;
12561
+ width: number;
12562
+ height: number;
12563
+ }, {
12564
+ page: number;
12565
+ x: number;
12566
+ y: number;
12567
+ width: number;
12568
+ height: number;
12569
+ }>, "many">>;
12570
+ order: z.ZodNumber;
12571
+ path: z.ZodString;
12572
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12573
+ }, "strip", z.ZodTypeAny, {
12574
+ title: string;
12575
+ path: string;
12576
+ sourceSpanIds: string[];
12577
+ description: string;
12578
+ kind: "endorsement" | "schedule" | "page" | "section" | "table" | "table_row" | "table_cell" | "text" | "document" | "page_group" | "form" | "clause";
12579
+ id: string;
12580
+ documentId: string;
12581
+ order: number;
12582
+ pageStart?: number | undefined;
12583
+ pageEnd?: number | undefined;
12584
+ bbox?: {
12585
+ page: number;
12586
+ x: number;
12587
+ y: number;
12588
+ width: number;
12589
+ height: number;
12590
+ }[] | undefined;
12591
+ metadata?: Record<string, unknown> | undefined;
12592
+ parentId?: string | undefined;
12593
+ textExcerpt?: string | undefined;
12594
+ }, {
12595
+ title: string;
12596
+ path: string;
12597
+ sourceSpanIds: string[];
12598
+ description: string;
12599
+ kind: "endorsement" | "schedule" | "page" | "section" | "table" | "table_row" | "table_cell" | "text" | "document" | "page_group" | "form" | "clause";
12600
+ id: string;
12601
+ documentId: string;
12602
+ order: number;
12603
+ pageStart?: number | undefined;
12604
+ pageEnd?: number | undefined;
12605
+ bbox?: {
12606
+ page: number;
12607
+ x: number;
12608
+ y: number;
12609
+ width: number;
12610
+ height: number;
12611
+ }[] | undefined;
12612
+ metadata?: Record<string, unknown> | undefined;
12613
+ parentId?: string | undefined;
12614
+ textExcerpt?: string | undefined;
12615
+ }>;
12616
+ type DocumentSourceNode = z.infer<typeof DocumentSourceNodeSchema>;
11820
12617
 
11821
12618
  type SourceRetrievalMode = "graph_only" | "source_rag" | "long_context" | "hybrid";
11822
12619
  interface SourceRetrievalQuery {
@@ -11831,8 +12628,15 @@ interface SourceRetrievalResult {
11831
12628
  span: SourceSpan;
11832
12629
  relevance: number;
11833
12630
  }
12631
+ interface SourceNodeRetrievalResult {
12632
+ node: DocumentSourceNode;
12633
+ relevance: number;
12634
+ hierarchy: DocumentSourceNode[];
12635
+ spans: SourceSpan[];
12636
+ }
11834
12637
  interface SourceRetriever {
11835
12638
  searchSourceSpans(query: SourceRetrievalQuery): Promise<SourceRetrievalResult[]>;
12639
+ searchSourceNodes?(query: SourceRetrievalQuery): Promise<SourceNodeRetrievalResult[]>;
11836
12640
  }
11837
12641
 
11838
12642
  interface SourceStore extends SourceRetriever {