@claritylabs/cl-sdk 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.mts +526 -15
- package/dist/index.d.ts +526 -15
- package/dist/index.js +823 -263
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +821 -263
- package/dist/index.mjs.map +1 -1
- package/dist/storage-sqlite.d.mts +223 -1
- package/dist/storage-sqlite.d.ts +223 -1
- package/package.json +1 -1
|
@@ -105,6 +105,71 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
105
105
|
sectionNumber?: string | undefined;
|
|
106
106
|
}[] | undefined;
|
|
107
107
|
}>, "many">>;
|
|
108
|
+
definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
term: z.ZodString;
|
|
110
|
+
definition: z.ZodString;
|
|
111
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
113
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
114
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
115
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
definition: string;
|
|
118
|
+
term: string;
|
|
119
|
+
formNumber?: string | undefined;
|
|
120
|
+
pageNumber?: number | undefined;
|
|
121
|
+
sectionRef?: string | undefined;
|
|
122
|
+
originalContent?: string | undefined;
|
|
123
|
+
formTitle?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
definition: string;
|
|
126
|
+
term: string;
|
|
127
|
+
formNumber?: string | undefined;
|
|
128
|
+
pageNumber?: number | undefined;
|
|
129
|
+
sectionRef?: string | undefined;
|
|
130
|
+
originalContent?: string | undefined;
|
|
131
|
+
formTitle?: string | undefined;
|
|
132
|
+
}>, "many">>;
|
|
133
|
+
coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
+
coverageName: z.ZodString;
|
|
135
|
+
reasonNumber: z.ZodOptional<z.ZodString>;
|
|
136
|
+
title: z.ZodOptional<z.ZodString>;
|
|
137
|
+
content: z.ZodString;
|
|
138
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
141
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
143
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
144
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
145
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
content: string;
|
|
148
|
+
coverageName: string;
|
|
149
|
+
title?: string | undefined;
|
|
150
|
+
conditions?: string[] | undefined;
|
|
151
|
+
formNumber?: string | undefined;
|
|
152
|
+
appliesTo?: string[] | undefined;
|
|
153
|
+
pageNumber?: number | undefined;
|
|
154
|
+
sectionRef?: string | undefined;
|
|
155
|
+
originalContent?: string | undefined;
|
|
156
|
+
exceptions?: string[] | undefined;
|
|
157
|
+
formTitle?: string | undefined;
|
|
158
|
+
reasonNumber?: string | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
content: string;
|
|
161
|
+
coverageName: string;
|
|
162
|
+
title?: string | undefined;
|
|
163
|
+
conditions?: string[] | undefined;
|
|
164
|
+
formNumber?: string | undefined;
|
|
165
|
+
appliesTo?: string[] | undefined;
|
|
166
|
+
pageNumber?: number | undefined;
|
|
167
|
+
sectionRef?: string | undefined;
|
|
168
|
+
originalContent?: string | undefined;
|
|
169
|
+
exceptions?: string[] | undefined;
|
|
170
|
+
formTitle?: string | undefined;
|
|
171
|
+
reasonNumber?: string | undefined;
|
|
172
|
+
}>, "many">>;
|
|
108
173
|
carrierLegalName: z.ZodOptional<z.ZodString>;
|
|
109
174
|
carrierNaicNumber: z.ZodOptional<z.ZodString>;
|
|
110
175
|
carrierAmBestRating: z.ZodOptional<z.ZodString>;
|
|
@@ -4183,6 +4248,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
4183
4248
|
sectionNumber?: string | undefined;
|
|
4184
4249
|
}[] | undefined;
|
|
4185
4250
|
}[] | undefined;
|
|
4251
|
+
definitions?: {
|
|
4252
|
+
definition: string;
|
|
4253
|
+
term: string;
|
|
4254
|
+
formNumber?: string | undefined;
|
|
4255
|
+
pageNumber?: number | undefined;
|
|
4256
|
+
sectionRef?: string | undefined;
|
|
4257
|
+
originalContent?: string | undefined;
|
|
4258
|
+
formTitle?: string | undefined;
|
|
4259
|
+
}[] | undefined;
|
|
4260
|
+
coveredReasons?: {
|
|
4261
|
+
content: string;
|
|
4262
|
+
coverageName: string;
|
|
4263
|
+
title?: string | undefined;
|
|
4264
|
+
conditions?: string[] | undefined;
|
|
4265
|
+
formNumber?: string | undefined;
|
|
4266
|
+
appliesTo?: string[] | undefined;
|
|
4267
|
+
pageNumber?: number | undefined;
|
|
4268
|
+
sectionRef?: string | undefined;
|
|
4269
|
+
originalContent?: string | undefined;
|
|
4270
|
+
exceptions?: string[] | undefined;
|
|
4271
|
+
formTitle?: string | undefined;
|
|
4272
|
+
reasonNumber?: string | undefined;
|
|
4273
|
+
}[] | undefined;
|
|
4186
4274
|
carrierLegalName?: string | undefined;
|
|
4187
4275
|
carrierNaicNumber?: string | undefined;
|
|
4188
4276
|
carrierAmBestRating?: string | undefined;
|
|
@@ -5114,6 +5202,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
5114
5202
|
sectionNumber?: string | undefined;
|
|
5115
5203
|
}[] | undefined;
|
|
5116
5204
|
}[] | undefined;
|
|
5205
|
+
definitions?: {
|
|
5206
|
+
definition: string;
|
|
5207
|
+
term: string;
|
|
5208
|
+
formNumber?: string | undefined;
|
|
5209
|
+
pageNumber?: number | undefined;
|
|
5210
|
+
sectionRef?: string | undefined;
|
|
5211
|
+
originalContent?: string | undefined;
|
|
5212
|
+
formTitle?: string | undefined;
|
|
5213
|
+
}[] | undefined;
|
|
5214
|
+
coveredReasons?: {
|
|
5215
|
+
content: string;
|
|
5216
|
+
coverageName: string;
|
|
5217
|
+
title?: string | undefined;
|
|
5218
|
+
conditions?: string[] | undefined;
|
|
5219
|
+
formNumber?: string | undefined;
|
|
5220
|
+
appliesTo?: string[] | undefined;
|
|
5221
|
+
pageNumber?: number | undefined;
|
|
5222
|
+
sectionRef?: string | undefined;
|
|
5223
|
+
originalContent?: string | undefined;
|
|
5224
|
+
exceptions?: string[] | undefined;
|
|
5225
|
+
formTitle?: string | undefined;
|
|
5226
|
+
reasonNumber?: string | undefined;
|
|
5227
|
+
}[] | undefined;
|
|
5117
5228
|
carrierLegalName?: string | undefined;
|
|
5118
5229
|
carrierNaicNumber?: string | undefined;
|
|
5119
5230
|
carrierAmBestRating?: string | undefined;
|
|
@@ -5579,6 +5690,71 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
5579
5690
|
sectionNumber?: string | undefined;
|
|
5580
5691
|
}[] | undefined;
|
|
5581
5692
|
}>, "many">>;
|
|
5693
|
+
definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5694
|
+
term: z.ZodString;
|
|
5695
|
+
definition: z.ZodString;
|
|
5696
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
5697
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
5698
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
5699
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
5700
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
5701
|
+
}, "strip", z.ZodTypeAny, {
|
|
5702
|
+
definition: string;
|
|
5703
|
+
term: string;
|
|
5704
|
+
formNumber?: string | undefined;
|
|
5705
|
+
pageNumber?: number | undefined;
|
|
5706
|
+
sectionRef?: string | undefined;
|
|
5707
|
+
originalContent?: string | undefined;
|
|
5708
|
+
formTitle?: string | undefined;
|
|
5709
|
+
}, {
|
|
5710
|
+
definition: string;
|
|
5711
|
+
term: string;
|
|
5712
|
+
formNumber?: string | undefined;
|
|
5713
|
+
pageNumber?: number | undefined;
|
|
5714
|
+
sectionRef?: string | undefined;
|
|
5715
|
+
originalContent?: string | undefined;
|
|
5716
|
+
formTitle?: string | undefined;
|
|
5717
|
+
}>, "many">>;
|
|
5718
|
+
coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5719
|
+
coverageName: z.ZodString;
|
|
5720
|
+
reasonNumber: z.ZodOptional<z.ZodString>;
|
|
5721
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5722
|
+
content: z.ZodString;
|
|
5723
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5724
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5725
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5726
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
5727
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
5728
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
5729
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
5730
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
5731
|
+
}, "strip", z.ZodTypeAny, {
|
|
5732
|
+
content: string;
|
|
5733
|
+
coverageName: string;
|
|
5734
|
+
title?: string | undefined;
|
|
5735
|
+
conditions?: string[] | undefined;
|
|
5736
|
+
formNumber?: string | undefined;
|
|
5737
|
+
appliesTo?: string[] | undefined;
|
|
5738
|
+
pageNumber?: number | undefined;
|
|
5739
|
+
sectionRef?: string | undefined;
|
|
5740
|
+
originalContent?: string | undefined;
|
|
5741
|
+
exceptions?: string[] | undefined;
|
|
5742
|
+
formTitle?: string | undefined;
|
|
5743
|
+
reasonNumber?: string | undefined;
|
|
5744
|
+
}, {
|
|
5745
|
+
content: string;
|
|
5746
|
+
coverageName: string;
|
|
5747
|
+
title?: string | undefined;
|
|
5748
|
+
conditions?: string[] | undefined;
|
|
5749
|
+
formNumber?: string | undefined;
|
|
5750
|
+
appliesTo?: string[] | undefined;
|
|
5751
|
+
pageNumber?: number | undefined;
|
|
5752
|
+
sectionRef?: string | undefined;
|
|
5753
|
+
originalContent?: string | undefined;
|
|
5754
|
+
exceptions?: string[] | undefined;
|
|
5755
|
+
formTitle?: string | undefined;
|
|
5756
|
+
reasonNumber?: string | undefined;
|
|
5757
|
+
}>, "many">>;
|
|
5582
5758
|
carrierLegalName: z.ZodOptional<z.ZodString>;
|
|
5583
5759
|
carrierNaicNumber: z.ZodOptional<z.ZodString>;
|
|
5584
5760
|
carrierAmBestRating: z.ZodOptional<z.ZodString>;
|
|
@@ -9652,6 +9828,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
9652
9828
|
sectionNumber?: string | undefined;
|
|
9653
9829
|
}[] | undefined;
|
|
9654
9830
|
}[] | undefined;
|
|
9831
|
+
definitions?: {
|
|
9832
|
+
definition: string;
|
|
9833
|
+
term: string;
|
|
9834
|
+
formNumber?: string | undefined;
|
|
9835
|
+
pageNumber?: number | undefined;
|
|
9836
|
+
sectionRef?: string | undefined;
|
|
9837
|
+
originalContent?: string | undefined;
|
|
9838
|
+
formTitle?: string | undefined;
|
|
9839
|
+
}[] | undefined;
|
|
9840
|
+
coveredReasons?: {
|
|
9841
|
+
content: string;
|
|
9842
|
+
coverageName: string;
|
|
9843
|
+
title?: string | undefined;
|
|
9844
|
+
conditions?: string[] | undefined;
|
|
9845
|
+
formNumber?: string | undefined;
|
|
9846
|
+
appliesTo?: string[] | undefined;
|
|
9847
|
+
pageNumber?: number | undefined;
|
|
9848
|
+
sectionRef?: string | undefined;
|
|
9849
|
+
originalContent?: string | undefined;
|
|
9850
|
+
exceptions?: string[] | undefined;
|
|
9851
|
+
formTitle?: string | undefined;
|
|
9852
|
+
reasonNumber?: string | undefined;
|
|
9853
|
+
}[] | undefined;
|
|
9655
9854
|
carrierLegalName?: string | undefined;
|
|
9656
9855
|
carrierNaicNumber?: string | undefined;
|
|
9657
9856
|
carrierAmBestRating?: string | undefined;
|
|
@@ -10612,6 +10811,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
10612
10811
|
sectionNumber?: string | undefined;
|
|
10613
10812
|
}[] | undefined;
|
|
10614
10813
|
}[] | undefined;
|
|
10814
|
+
definitions?: {
|
|
10815
|
+
definition: string;
|
|
10816
|
+
term: string;
|
|
10817
|
+
formNumber?: string | undefined;
|
|
10818
|
+
pageNumber?: number | undefined;
|
|
10819
|
+
sectionRef?: string | undefined;
|
|
10820
|
+
originalContent?: string | undefined;
|
|
10821
|
+
formTitle?: string | undefined;
|
|
10822
|
+
}[] | undefined;
|
|
10823
|
+
coveredReasons?: {
|
|
10824
|
+
content: string;
|
|
10825
|
+
coverageName: string;
|
|
10826
|
+
title?: string | undefined;
|
|
10827
|
+
conditions?: string[] | undefined;
|
|
10828
|
+
formNumber?: string | undefined;
|
|
10829
|
+
appliesTo?: string[] | undefined;
|
|
10830
|
+
pageNumber?: number | undefined;
|
|
10831
|
+
sectionRef?: string | undefined;
|
|
10832
|
+
originalContent?: string | undefined;
|
|
10833
|
+
exceptions?: string[] | undefined;
|
|
10834
|
+
formTitle?: string | undefined;
|
|
10835
|
+
reasonNumber?: string | undefined;
|
|
10836
|
+
}[] | undefined;
|
|
10615
10837
|
carrierLegalName?: string | undefined;
|
|
10616
10838
|
carrierNaicNumber?: string | undefined;
|
|
10617
10839
|
carrierAmBestRating?: string | undefined;
|
|
@@ -10943,7 +11165,7 @@ interface DocumentChunk {
|
|
|
10943
11165
|
/** Source document ID */
|
|
10944
11166
|
documentId: string;
|
|
10945
11167
|
/** Chunk type for filtering */
|
|
10946
|
-
type: "carrier_info" | "named_insured" | "coverage" | "endorsement" | "exclusion" | "condition" | "section" | "declaration" | "loss_history" | "premium" | "supplementary" | "location" | "vehicle" | "classification" | "financial" | "party" | "subjectivity" | "underwriting_condition";
|
|
11168
|
+
type: "carrier_info" | "named_insured" | "coverage" | "covered_reason" | "definition" | "endorsement" | "exclusion" | "condition" | "section" | "declaration" | "loss_history" | "premium" | "supplementary" | "location" | "vehicle" | "classification" | "financial" | "party" | "subjectivity" | "underwriting_condition";
|
|
10947
11169
|
/** Human-readable text for embedding */
|
|
10948
11170
|
text: string;
|
|
10949
11171
|
/** Structured metadata for filtering */
|
package/dist/storage-sqlite.d.ts
CHANGED
|
@@ -105,6 +105,71 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
105
105
|
sectionNumber?: string | undefined;
|
|
106
106
|
}[] | undefined;
|
|
107
107
|
}>, "many">>;
|
|
108
|
+
definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
term: z.ZodString;
|
|
110
|
+
definition: z.ZodString;
|
|
111
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
113
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
114
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
115
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
definition: string;
|
|
118
|
+
term: string;
|
|
119
|
+
formNumber?: string | undefined;
|
|
120
|
+
pageNumber?: number | undefined;
|
|
121
|
+
sectionRef?: string | undefined;
|
|
122
|
+
originalContent?: string | undefined;
|
|
123
|
+
formTitle?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
definition: string;
|
|
126
|
+
term: string;
|
|
127
|
+
formNumber?: string | undefined;
|
|
128
|
+
pageNumber?: number | undefined;
|
|
129
|
+
sectionRef?: string | undefined;
|
|
130
|
+
originalContent?: string | undefined;
|
|
131
|
+
formTitle?: string | undefined;
|
|
132
|
+
}>, "many">>;
|
|
133
|
+
coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
+
coverageName: z.ZodString;
|
|
135
|
+
reasonNumber: z.ZodOptional<z.ZodString>;
|
|
136
|
+
title: z.ZodOptional<z.ZodString>;
|
|
137
|
+
content: z.ZodString;
|
|
138
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
141
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
143
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
144
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
145
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
content: string;
|
|
148
|
+
coverageName: string;
|
|
149
|
+
title?: string | undefined;
|
|
150
|
+
conditions?: string[] | undefined;
|
|
151
|
+
formNumber?: string | undefined;
|
|
152
|
+
appliesTo?: string[] | undefined;
|
|
153
|
+
pageNumber?: number | undefined;
|
|
154
|
+
sectionRef?: string | undefined;
|
|
155
|
+
originalContent?: string | undefined;
|
|
156
|
+
exceptions?: string[] | undefined;
|
|
157
|
+
formTitle?: string | undefined;
|
|
158
|
+
reasonNumber?: string | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
content: string;
|
|
161
|
+
coverageName: string;
|
|
162
|
+
title?: string | undefined;
|
|
163
|
+
conditions?: string[] | undefined;
|
|
164
|
+
formNumber?: string | undefined;
|
|
165
|
+
appliesTo?: string[] | undefined;
|
|
166
|
+
pageNumber?: number | undefined;
|
|
167
|
+
sectionRef?: string | undefined;
|
|
168
|
+
originalContent?: string | undefined;
|
|
169
|
+
exceptions?: string[] | undefined;
|
|
170
|
+
formTitle?: string | undefined;
|
|
171
|
+
reasonNumber?: string | undefined;
|
|
172
|
+
}>, "many">>;
|
|
108
173
|
carrierLegalName: z.ZodOptional<z.ZodString>;
|
|
109
174
|
carrierNaicNumber: z.ZodOptional<z.ZodString>;
|
|
110
175
|
carrierAmBestRating: z.ZodOptional<z.ZodString>;
|
|
@@ -4183,6 +4248,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
4183
4248
|
sectionNumber?: string | undefined;
|
|
4184
4249
|
}[] | undefined;
|
|
4185
4250
|
}[] | undefined;
|
|
4251
|
+
definitions?: {
|
|
4252
|
+
definition: string;
|
|
4253
|
+
term: string;
|
|
4254
|
+
formNumber?: string | undefined;
|
|
4255
|
+
pageNumber?: number | undefined;
|
|
4256
|
+
sectionRef?: string | undefined;
|
|
4257
|
+
originalContent?: string | undefined;
|
|
4258
|
+
formTitle?: string | undefined;
|
|
4259
|
+
}[] | undefined;
|
|
4260
|
+
coveredReasons?: {
|
|
4261
|
+
content: string;
|
|
4262
|
+
coverageName: string;
|
|
4263
|
+
title?: string | undefined;
|
|
4264
|
+
conditions?: string[] | undefined;
|
|
4265
|
+
formNumber?: string | undefined;
|
|
4266
|
+
appliesTo?: string[] | undefined;
|
|
4267
|
+
pageNumber?: number | undefined;
|
|
4268
|
+
sectionRef?: string | undefined;
|
|
4269
|
+
originalContent?: string | undefined;
|
|
4270
|
+
exceptions?: string[] | undefined;
|
|
4271
|
+
formTitle?: string | undefined;
|
|
4272
|
+
reasonNumber?: string | undefined;
|
|
4273
|
+
}[] | undefined;
|
|
4186
4274
|
carrierLegalName?: string | undefined;
|
|
4187
4275
|
carrierNaicNumber?: string | undefined;
|
|
4188
4276
|
carrierAmBestRating?: string | undefined;
|
|
@@ -5114,6 +5202,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
5114
5202
|
sectionNumber?: string | undefined;
|
|
5115
5203
|
}[] | undefined;
|
|
5116
5204
|
}[] | undefined;
|
|
5205
|
+
definitions?: {
|
|
5206
|
+
definition: string;
|
|
5207
|
+
term: string;
|
|
5208
|
+
formNumber?: string | undefined;
|
|
5209
|
+
pageNumber?: number | undefined;
|
|
5210
|
+
sectionRef?: string | undefined;
|
|
5211
|
+
originalContent?: string | undefined;
|
|
5212
|
+
formTitle?: string | undefined;
|
|
5213
|
+
}[] | undefined;
|
|
5214
|
+
coveredReasons?: {
|
|
5215
|
+
content: string;
|
|
5216
|
+
coverageName: string;
|
|
5217
|
+
title?: string | undefined;
|
|
5218
|
+
conditions?: string[] | undefined;
|
|
5219
|
+
formNumber?: string | undefined;
|
|
5220
|
+
appliesTo?: string[] | undefined;
|
|
5221
|
+
pageNumber?: number | undefined;
|
|
5222
|
+
sectionRef?: string | undefined;
|
|
5223
|
+
originalContent?: string | undefined;
|
|
5224
|
+
exceptions?: string[] | undefined;
|
|
5225
|
+
formTitle?: string | undefined;
|
|
5226
|
+
reasonNumber?: string | undefined;
|
|
5227
|
+
}[] | undefined;
|
|
5117
5228
|
carrierLegalName?: string | undefined;
|
|
5118
5229
|
carrierNaicNumber?: string | undefined;
|
|
5119
5230
|
carrierAmBestRating?: string | undefined;
|
|
@@ -5579,6 +5690,71 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
5579
5690
|
sectionNumber?: string | undefined;
|
|
5580
5691
|
}[] | undefined;
|
|
5581
5692
|
}>, "many">>;
|
|
5693
|
+
definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5694
|
+
term: z.ZodString;
|
|
5695
|
+
definition: z.ZodString;
|
|
5696
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
5697
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
5698
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
5699
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
5700
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
5701
|
+
}, "strip", z.ZodTypeAny, {
|
|
5702
|
+
definition: string;
|
|
5703
|
+
term: string;
|
|
5704
|
+
formNumber?: string | undefined;
|
|
5705
|
+
pageNumber?: number | undefined;
|
|
5706
|
+
sectionRef?: string | undefined;
|
|
5707
|
+
originalContent?: string | undefined;
|
|
5708
|
+
formTitle?: string | undefined;
|
|
5709
|
+
}, {
|
|
5710
|
+
definition: string;
|
|
5711
|
+
term: string;
|
|
5712
|
+
formNumber?: string | undefined;
|
|
5713
|
+
pageNumber?: number | undefined;
|
|
5714
|
+
sectionRef?: string | undefined;
|
|
5715
|
+
originalContent?: string | undefined;
|
|
5716
|
+
formTitle?: string | undefined;
|
|
5717
|
+
}>, "many">>;
|
|
5718
|
+
coveredReasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5719
|
+
coverageName: z.ZodString;
|
|
5720
|
+
reasonNumber: z.ZodOptional<z.ZodString>;
|
|
5721
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5722
|
+
content: z.ZodString;
|
|
5723
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5724
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5725
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5726
|
+
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
5727
|
+
formNumber: z.ZodOptional<z.ZodString>;
|
|
5728
|
+
formTitle: z.ZodOptional<z.ZodString>;
|
|
5729
|
+
sectionRef: z.ZodOptional<z.ZodString>;
|
|
5730
|
+
originalContent: z.ZodOptional<z.ZodString>;
|
|
5731
|
+
}, "strip", z.ZodTypeAny, {
|
|
5732
|
+
content: string;
|
|
5733
|
+
coverageName: string;
|
|
5734
|
+
title?: string | undefined;
|
|
5735
|
+
conditions?: string[] | undefined;
|
|
5736
|
+
formNumber?: string | undefined;
|
|
5737
|
+
appliesTo?: string[] | undefined;
|
|
5738
|
+
pageNumber?: number | undefined;
|
|
5739
|
+
sectionRef?: string | undefined;
|
|
5740
|
+
originalContent?: string | undefined;
|
|
5741
|
+
exceptions?: string[] | undefined;
|
|
5742
|
+
formTitle?: string | undefined;
|
|
5743
|
+
reasonNumber?: string | undefined;
|
|
5744
|
+
}, {
|
|
5745
|
+
content: string;
|
|
5746
|
+
coverageName: string;
|
|
5747
|
+
title?: string | undefined;
|
|
5748
|
+
conditions?: string[] | undefined;
|
|
5749
|
+
formNumber?: string | undefined;
|
|
5750
|
+
appliesTo?: string[] | undefined;
|
|
5751
|
+
pageNumber?: number | undefined;
|
|
5752
|
+
sectionRef?: string | undefined;
|
|
5753
|
+
originalContent?: string | undefined;
|
|
5754
|
+
exceptions?: string[] | undefined;
|
|
5755
|
+
formTitle?: string | undefined;
|
|
5756
|
+
reasonNumber?: string | undefined;
|
|
5757
|
+
}>, "many">>;
|
|
5582
5758
|
carrierLegalName: z.ZodOptional<z.ZodString>;
|
|
5583
5759
|
carrierNaicNumber: z.ZodOptional<z.ZodString>;
|
|
5584
5760
|
carrierAmBestRating: z.ZodOptional<z.ZodString>;
|
|
@@ -9652,6 +9828,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
9652
9828
|
sectionNumber?: string | undefined;
|
|
9653
9829
|
}[] | undefined;
|
|
9654
9830
|
}[] | undefined;
|
|
9831
|
+
definitions?: {
|
|
9832
|
+
definition: string;
|
|
9833
|
+
term: string;
|
|
9834
|
+
formNumber?: string | undefined;
|
|
9835
|
+
pageNumber?: number | undefined;
|
|
9836
|
+
sectionRef?: string | undefined;
|
|
9837
|
+
originalContent?: string | undefined;
|
|
9838
|
+
formTitle?: string | undefined;
|
|
9839
|
+
}[] | undefined;
|
|
9840
|
+
coveredReasons?: {
|
|
9841
|
+
content: string;
|
|
9842
|
+
coverageName: string;
|
|
9843
|
+
title?: string | undefined;
|
|
9844
|
+
conditions?: string[] | undefined;
|
|
9845
|
+
formNumber?: string | undefined;
|
|
9846
|
+
appliesTo?: string[] | undefined;
|
|
9847
|
+
pageNumber?: number | undefined;
|
|
9848
|
+
sectionRef?: string | undefined;
|
|
9849
|
+
originalContent?: string | undefined;
|
|
9850
|
+
exceptions?: string[] | undefined;
|
|
9851
|
+
formTitle?: string | undefined;
|
|
9852
|
+
reasonNumber?: string | undefined;
|
|
9853
|
+
}[] | undefined;
|
|
9655
9854
|
carrierLegalName?: string | undefined;
|
|
9656
9855
|
carrierNaicNumber?: string | undefined;
|
|
9657
9856
|
carrierAmBestRating?: string | undefined;
|
|
@@ -10612,6 +10811,29 @@ declare const InsuranceDocumentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
10612
10811
|
sectionNumber?: string | undefined;
|
|
10613
10812
|
}[] | undefined;
|
|
10614
10813
|
}[] | undefined;
|
|
10814
|
+
definitions?: {
|
|
10815
|
+
definition: string;
|
|
10816
|
+
term: string;
|
|
10817
|
+
formNumber?: string | undefined;
|
|
10818
|
+
pageNumber?: number | undefined;
|
|
10819
|
+
sectionRef?: string | undefined;
|
|
10820
|
+
originalContent?: string | undefined;
|
|
10821
|
+
formTitle?: string | undefined;
|
|
10822
|
+
}[] | undefined;
|
|
10823
|
+
coveredReasons?: {
|
|
10824
|
+
content: string;
|
|
10825
|
+
coverageName: string;
|
|
10826
|
+
title?: string | undefined;
|
|
10827
|
+
conditions?: string[] | undefined;
|
|
10828
|
+
formNumber?: string | undefined;
|
|
10829
|
+
appliesTo?: string[] | undefined;
|
|
10830
|
+
pageNumber?: number | undefined;
|
|
10831
|
+
sectionRef?: string | undefined;
|
|
10832
|
+
originalContent?: string | undefined;
|
|
10833
|
+
exceptions?: string[] | undefined;
|
|
10834
|
+
formTitle?: string | undefined;
|
|
10835
|
+
reasonNumber?: string | undefined;
|
|
10836
|
+
}[] | undefined;
|
|
10615
10837
|
carrierLegalName?: string | undefined;
|
|
10616
10838
|
carrierNaicNumber?: string | undefined;
|
|
10617
10839
|
carrierAmBestRating?: string | undefined;
|
|
@@ -10943,7 +11165,7 @@ interface DocumentChunk {
|
|
|
10943
11165
|
/** Source document ID */
|
|
10944
11166
|
documentId: string;
|
|
10945
11167
|
/** Chunk type for filtering */
|
|
10946
|
-
type: "carrier_info" | "named_insured" | "coverage" | "endorsement" | "exclusion" | "condition" | "section" | "declaration" | "loss_history" | "premium" | "supplementary" | "location" | "vehicle" | "classification" | "financial" | "party" | "subjectivity" | "underwriting_condition";
|
|
11168
|
+
type: "carrier_info" | "named_insured" | "coverage" | "covered_reason" | "definition" | "endorsement" | "exclusion" | "condition" | "section" | "declaration" | "loss_history" | "premium" | "supplementary" | "location" | "vehicle" | "classification" | "financial" | "party" | "subjectivity" | "underwriting_condition";
|
|
10947
11169
|
/** Human-readable text for embedding */
|
|
10948
11170
|
text: string;
|
|
10949
11171
|
/** Structured metadata for filtering */
|
package/package.json
CHANGED