@adoptai/genui-components 0.1.57 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composites/document-field-extraction/FieldAuditLog.d.ts +27 -0
- package/dist/composites/document-field-extraction/FieldAuditLog.d.ts.map +1 -0
- package/dist/composites/document-field-extraction/FieldDetail.d.ts +22 -0
- package/dist/composites/document-field-extraction/FieldDetail.d.ts.map +1 -0
- package/dist/composites/document-field-extraction/FieldDetails.d.ts +18 -0
- package/dist/composites/document-field-extraction/FieldDetails.d.ts.map +1 -0
- package/dist/composites/document-field-extraction/bboxTransform.d.ts +25 -0
- package/dist/composites/document-field-extraction/bboxTransform.d.ts.map +1 -0
- package/dist/composites/document-field-extraction/fieldLabels.d.ts +2 -0
- package/dist/composites/document-field-extraction/fieldLabels.d.ts.map +1 -0
- package/dist/composites/document-field-extraction/resolver.d.ts +16 -0
- package/dist/composites/document-field-extraction/resolver.d.ts.map +1 -0
- package/dist/index.cjs +2097 -246
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1892 -45
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +1917 -181
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +1774 -38
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +1916 -180
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +1774 -38
- package/dist/resolver.js.map +1 -1
- package/dist/schemas/document-field-extraction.d.ts +258 -0
- package/dist/schemas/document-field-extraction.d.ts.map +1 -0
- package/dist/schemas/index.cjs +178 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +258 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +178 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/tool-definitions.json +227 -3
- package/package.json +1 -1
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const documentFieldExtractionSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"document-field-extraction">;
|
|
4
|
+
doc_type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
payload_ref: z.ZodOptional<z.ZodString>;
|
|
7
|
+
store_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
doc_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
page: z.ZodNumber;
|
|
11
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
12
|
+
width_pt: z.ZodNumber;
|
|
13
|
+
height_pt: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
field_key: z.ZodString;
|
|
17
|
+
label: z.ZodString;
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
page: z.ZodNumber;
|
|
20
|
+
bbox: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
|
|
21
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
confidence_tier: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
red: "red";
|
|
24
|
+
green: "green";
|
|
25
|
+
amber: "amber";
|
|
26
|
+
}>>;
|
|
27
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
SC: "SC";
|
|
29
|
+
CN: "CN";
|
|
30
|
+
AB: "AB";
|
|
31
|
+
SW: "SW";
|
|
32
|
+
}>>;
|
|
33
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
ok: "ok";
|
|
35
|
+
corrected: "corrected";
|
|
36
|
+
missing: "missing";
|
|
37
|
+
warn: "warn";
|
|
38
|
+
}>>;
|
|
39
|
+
entity_type: z.ZodOptional<z.ZodString>;
|
|
40
|
+
is_primary: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
previous_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
corrected_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
pages_processed: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
organization: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
domain_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
tax_year: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
53
|
+
crumbs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
stats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
field_key: z.ZodString;
|
|
57
|
+
label: z.ZodString;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
caption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
field_key: z.ZodString;
|
|
63
|
+
label: z.ZodString;
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
badge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const documentFieldExtractionTool: {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
input_schema: {
|
|
73
|
+
type: "object";
|
|
74
|
+
properties: {
|
|
75
|
+
type: {
|
|
76
|
+
type: string;
|
|
77
|
+
enum: string[];
|
|
78
|
+
};
|
|
79
|
+
doc_type: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
file_name: {
|
|
83
|
+
type: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
payload_ref: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
store_id: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
doc_id: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
pages: {
|
|
99
|
+
type: string;
|
|
100
|
+
items: {
|
|
101
|
+
type: string;
|
|
102
|
+
properties: {
|
|
103
|
+
page: {
|
|
104
|
+
type: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
imageUrl: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
width_pt: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
height_pt: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
required: string[];
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
fields: {
|
|
121
|
+
type: string;
|
|
122
|
+
items: {
|
|
123
|
+
type: string;
|
|
124
|
+
properties: {
|
|
125
|
+
field_key: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
label: {
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
value: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
page: {
|
|
135
|
+
type: string;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
bbox: {
|
|
139
|
+
type: string;
|
|
140
|
+
items: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
confidence: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
confidence_tier: {
|
|
149
|
+
type: string;
|
|
150
|
+
enum: string[];
|
|
151
|
+
};
|
|
152
|
+
badge: {
|
|
153
|
+
type: string;
|
|
154
|
+
enum: string[];
|
|
155
|
+
};
|
|
156
|
+
state: {
|
|
157
|
+
type: string;
|
|
158
|
+
enum: string[];
|
|
159
|
+
};
|
|
160
|
+
entity_type: {
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
is_primary: {
|
|
164
|
+
type: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
required: string[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
page_count: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
pages_processed: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
summary: {
|
|
177
|
+
type: string;
|
|
178
|
+
description: string;
|
|
179
|
+
properties: {
|
|
180
|
+
display_name: {
|
|
181
|
+
type: string;
|
|
182
|
+
};
|
|
183
|
+
short_name: {
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
organization: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
domain: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
domain_group: {
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
195
|
+
tax_year: {
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
crumbs: {
|
|
199
|
+
type: string;
|
|
200
|
+
items: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
tags: {
|
|
205
|
+
type: string;
|
|
206
|
+
items: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
stats: {
|
|
211
|
+
type: string;
|
|
212
|
+
items: {
|
|
213
|
+
type: string;
|
|
214
|
+
properties: {
|
|
215
|
+
field_key: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
label: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
value: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
caption: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
required: string[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
facts: {
|
|
232
|
+
type: string;
|
|
233
|
+
items: {
|
|
234
|
+
type: string;
|
|
235
|
+
properties: {
|
|
236
|
+
field_key: {
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
label: {
|
|
240
|
+
type: string;
|
|
241
|
+
};
|
|
242
|
+
value: {
|
|
243
|
+
type: string;
|
|
244
|
+
};
|
|
245
|
+
badge: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
required: string[];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
required: string[];
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
//# sourceMappingURL=document-field-extraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-field-extraction.d.ts","sourceRoot":"","sources":["../../src/schemas/document-field-extraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GvC,CAAC"}
|
package/dist/schemas/index.cjs
CHANGED
|
@@ -3455,6 +3455,183 @@ var workflowStepperTool = {
|
|
|
3455
3455
|
required: ["type", "title", "steps"]
|
|
3456
3456
|
}
|
|
3457
3457
|
};
|
|
3458
|
+
var bbox = zod.z.tuple([zod.z.number(), zod.z.number(), zod.z.number(), zod.z.number()]);
|
|
3459
|
+
var fieldSchema = zod.z.object({
|
|
3460
|
+
field_key: zod.z.string(),
|
|
3461
|
+
label: zod.z.string(),
|
|
3462
|
+
value: zod.z.string(),
|
|
3463
|
+
page: zod.z.number(),
|
|
3464
|
+
// 0-indexed, matches PageDimension.page
|
|
3465
|
+
bbox: bbox.nullable().optional(),
|
|
3466
|
+
confidence: zod.z.number().optional(),
|
|
3467
|
+
confidence_tier: zod.z.enum(["green", "amber", "red"]).optional(),
|
|
3468
|
+
badge: zod.z.enum(["SC", "CN", "AB", "SW"]).optional(),
|
|
3469
|
+
state: zod.z.enum(["ok", "corrected", "missing", "warn"]).optional(),
|
|
3470
|
+
entity_type: zod.z.string().optional(),
|
|
3471
|
+
is_primary: zod.z.boolean().optional(),
|
|
3472
|
+
// Set after a human correction (extractor output, or an optimistic in-card
|
|
3473
|
+
// edit) so the editable field card can show old → new and who changed it.
|
|
3474
|
+
previous_value: zod.z.string().nullable().optional(),
|
|
3475
|
+
corrected_by: zod.z.string().nullable().optional()
|
|
3476
|
+
});
|
|
3477
|
+
var pageSchema = zod.z.object({
|
|
3478
|
+
page: zod.z.number(),
|
|
3479
|
+
// 0-indexed
|
|
3480
|
+
imageUrl: zod.z.string().optional(),
|
|
3481
|
+
// host-resolved from the durable image_ref
|
|
3482
|
+
width_pt: zod.z.number(),
|
|
3483
|
+
height_pt: zod.z.number()
|
|
3484
|
+
});
|
|
3485
|
+
var summaryStatSchema = zod.z.object({
|
|
3486
|
+
field_key: zod.z.string(),
|
|
3487
|
+
label: zod.z.string(),
|
|
3488
|
+
value: zod.z.string(),
|
|
3489
|
+
caption: zod.z.string().nullable().optional()
|
|
3490
|
+
});
|
|
3491
|
+
var summaryFactSchema = zod.z.object({
|
|
3492
|
+
field_key: zod.z.string(),
|
|
3493
|
+
label: zod.z.string(),
|
|
3494
|
+
value: zod.z.string(),
|
|
3495
|
+
badge: zod.z.string().nullable().optional()
|
|
3496
|
+
});
|
|
3497
|
+
var summarySchema = zod.z.object({
|
|
3498
|
+
display_name: zod.z.string().nullable().optional(),
|
|
3499
|
+
short_name: zod.z.string().nullable().optional(),
|
|
3500
|
+
organization: zod.z.string().nullable().optional(),
|
|
3501
|
+
domain: zod.z.string().nullable().optional(),
|
|
3502
|
+
domain_group: zod.z.string().nullable().optional(),
|
|
3503
|
+
tax_year: zod.z.union([zod.z.string(), zod.z.number()]).nullable().optional(),
|
|
3504
|
+
crumbs: zod.z.array(zod.z.string()).optional(),
|
|
3505
|
+
tags: zod.z.array(zod.z.string()).optional(),
|
|
3506
|
+
stats: zod.z.array(summaryStatSchema).optional(),
|
|
3507
|
+
facts: zod.z.array(summaryFactSchema).optional()
|
|
3508
|
+
});
|
|
3509
|
+
var documentFieldExtractionSchema = zod.z.object({
|
|
3510
|
+
type: zod.z.literal("document-field-extraction"),
|
|
3511
|
+
doc_type: zod.z.string().optional(),
|
|
3512
|
+
// Original uploaded filename (e.g. "2024_gl.pdf"); preferred over doc_type for
|
|
3513
|
+
// the card title since doc_type is often the "generic_fallback" schema name.
|
|
3514
|
+
file_name: zod.z.string().optional(),
|
|
3515
|
+
// Server-side token; resolved by the host into pages/fields before render.
|
|
3516
|
+
payload_ref: zod.z.string().optional(),
|
|
3517
|
+
// Present for persisted workstream docs; absent for pre-existing cards.
|
|
3518
|
+
store_id: zod.z.string().optional(),
|
|
3519
|
+
doc_id: zod.z.string().optional(),
|
|
3520
|
+
pages: zod.z.array(pageSchema).max(100).optional(),
|
|
3521
|
+
fields: zod.z.array(fieldSchema).max(1e3).optional(),
|
|
3522
|
+
// Page-count metadata for the Details tab ("N of M pages extracted").
|
|
3523
|
+
page_count: zod.z.number().optional(),
|
|
3524
|
+
pages_processed: zod.z.number().optional(),
|
|
3525
|
+
// Deterministic document summary for the Details tab.
|
|
3526
|
+
summary: summarySchema.nullable().optional()
|
|
3527
|
+
});
|
|
3528
|
+
var documentFieldExtractionTool = {
|
|
3529
|
+
name: "render_document_field_extraction",
|
|
3530
|
+
description: "Render extracted document fields as an interactive overlay on the page image(s) \u2014 colored bounding boxes per field plus a synced field-card list. Use after the extract_document tool returns; pass the returned payload_ref (the host expands it). For invoices, statements, tax forms, receipts, KYC/loan docs, POs where the user wants to SEE where each value sits on the page.",
|
|
3531
|
+
input_schema: {
|
|
3532
|
+
type: "object",
|
|
3533
|
+
properties: {
|
|
3534
|
+
type: { type: "string", enum: ["document-field-extraction"] },
|
|
3535
|
+
doc_type: { type: "string" },
|
|
3536
|
+
file_name: {
|
|
3537
|
+
type: "string",
|
|
3538
|
+
description: "Original uploaded filename; shown as the card title."
|
|
3539
|
+
},
|
|
3540
|
+
payload_ref: {
|
|
3541
|
+
type: "string",
|
|
3542
|
+
description: "Durable store key returned by extract_document; the GenUI host expands it into pages/fields at render time. Pass this verbatim \u2014 do NOT hand-build pages/fields."
|
|
3543
|
+
},
|
|
3544
|
+
store_id: {
|
|
3545
|
+
type: "string",
|
|
3546
|
+
description: "Docstore store id; present for persisted workstream docs. The host uses this to open the editable viewer."
|
|
3547
|
+
},
|
|
3548
|
+
doc_id: {
|
|
3549
|
+
type: "string",
|
|
3550
|
+
description: "Docstore document id; present for persisted workstream docs. Required for the editable viewer."
|
|
3551
|
+
},
|
|
3552
|
+
pages: {
|
|
3553
|
+
type: "array",
|
|
3554
|
+
items: {
|
|
3555
|
+
type: "object",
|
|
3556
|
+
properties: {
|
|
3557
|
+
page: { type: "number", description: "0-indexed page number" },
|
|
3558
|
+
imageUrl: { type: "string" },
|
|
3559
|
+
width_pt: { type: "number" },
|
|
3560
|
+
height_pt: { type: "number" }
|
|
3561
|
+
},
|
|
3562
|
+
required: ["page", "width_pt", "height_pt"]
|
|
3563
|
+
}
|
|
3564
|
+
},
|
|
3565
|
+
fields: {
|
|
3566
|
+
type: "array",
|
|
3567
|
+
items: {
|
|
3568
|
+
type: "object",
|
|
3569
|
+
properties: {
|
|
3570
|
+
field_key: { type: "string" },
|
|
3571
|
+
label: { type: "string" },
|
|
3572
|
+
value: { type: "string" },
|
|
3573
|
+
page: { type: "number", description: "0-indexed page number" },
|
|
3574
|
+
bbox: {
|
|
3575
|
+
type: "array",
|
|
3576
|
+
items: { type: "number" },
|
|
3577
|
+
description: "[x0,y0,x1,y1] PDF points, origin bottom-left; null if unlocated"
|
|
3578
|
+
},
|
|
3579
|
+
confidence: { type: "number" },
|
|
3580
|
+
confidence_tier: { type: "string", enum: ["green", "amber", "red"] },
|
|
3581
|
+
badge: { type: "string", enum: ["SC", "CN", "AB", "SW"] },
|
|
3582
|
+
state: { type: "string", enum: ["ok", "corrected", "missing", "warn"] },
|
|
3583
|
+
entity_type: { type: "string" },
|
|
3584
|
+
is_primary: { type: "boolean" }
|
|
3585
|
+
},
|
|
3586
|
+
required: ["field_key", "label", "value", "page"]
|
|
3587
|
+
}
|
|
3588
|
+
},
|
|
3589
|
+
page_count: { type: "number" },
|
|
3590
|
+
pages_processed: { type: "number" },
|
|
3591
|
+
summary: {
|
|
3592
|
+
type: "object",
|
|
3593
|
+
description: "Deterministic document summary for the Details tab (display_name, organization, domain, stats, facts, tags). Produced by the extractor \u2014 pass through verbatim.",
|
|
3594
|
+
properties: {
|
|
3595
|
+
display_name: { type: "string" },
|
|
3596
|
+
short_name: { type: "string" },
|
|
3597
|
+
organization: { type: "string" },
|
|
3598
|
+
domain: { type: "string" },
|
|
3599
|
+
domain_group: { type: "string" },
|
|
3600
|
+
tax_year: { type: "string" },
|
|
3601
|
+
crumbs: { type: "array", items: { type: "string" } },
|
|
3602
|
+
tags: { type: "array", items: { type: "string" } },
|
|
3603
|
+
stats: {
|
|
3604
|
+
type: "array",
|
|
3605
|
+
items: {
|
|
3606
|
+
type: "object",
|
|
3607
|
+
properties: {
|
|
3608
|
+
field_key: { type: "string" },
|
|
3609
|
+
label: { type: "string" },
|
|
3610
|
+
value: { type: "string" },
|
|
3611
|
+
caption: { type: "string" }
|
|
3612
|
+
},
|
|
3613
|
+
required: ["field_key", "label", "value"]
|
|
3614
|
+
}
|
|
3615
|
+
},
|
|
3616
|
+
facts: {
|
|
3617
|
+
type: "array",
|
|
3618
|
+
items: {
|
|
3619
|
+
type: "object",
|
|
3620
|
+
properties: {
|
|
3621
|
+
field_key: { type: "string" },
|
|
3622
|
+
label: { type: "string" },
|
|
3623
|
+
value: { type: "string" },
|
|
3624
|
+
badge: { type: "string" }
|
|
3625
|
+
},
|
|
3626
|
+
required: ["field_key", "label", "value"]
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
},
|
|
3632
|
+
required: ["type"]
|
|
3633
|
+
}
|
|
3634
|
+
};
|
|
3458
3635
|
var decisionCardSchema = zod.z.object({
|
|
3459
3636
|
type: zod.z.literal("decision-card"),
|
|
3460
3637
|
id: zod.z.string().optional(),
|
|
@@ -3677,6 +3854,7 @@ var schemaRegistry = {
|
|
|
3677
3854
|
"integrations-list": { schema: integrationsListSchema, tool: integrationsListTool },
|
|
3678
3855
|
"pipeline-preview": { schema: pipelinePreviewSchema, tool: pipelinePreviewTool },
|
|
3679
3856
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3857
|
+
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3680
3858
|
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool }
|
|
3681
3859
|
};
|
|
3682
3860
|
|