@adoptai/genui-components 0.1.56 → 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/builders/BuilderForm.d.ts.map +1 -1
- package/dist/composites/decision-card/resolver.cjs +634 -0
- package/dist/composites/decision-card/resolver.cjs.map +1 -0
- package/dist/composites/decision-card/resolver.d.ts +13 -0
- package/dist/composites/decision-card/resolver.d.ts.map +1 -0
- package/dist/composites/decision-card/resolver.js +627 -0
- package/dist/composites/decision-card/resolver.js.map +1 -0
- 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/composites/workflow-stepper/resolver.cjs +4 -1
- package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
- package/dist/composites/workflow-stepper/resolver.js +4 -1
- package/dist/composites/workflow-stepper/resolver.js.map +1 -1
- package/dist/index.cjs +2735 -382
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2530 -183
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +2410 -178
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +2267 -35
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +2409 -177
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +2267 -35
- package/dist/resolver.js.map +1 -1
- package/dist/schemas/decision-card.d.ts +149 -0
- package/dist/schemas/decision-card.d.ts.map +1 -0
- 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 +283 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +407 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +283 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/shared/InteractionContext.d.ts +10 -0
- package/dist/shared/InteractionContext.d.ts.map +1 -1
- package/dist/tool-definitions.json +359 -3
- package/package.json +1 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const decisionCardSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"decision-card">;
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
decision_type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
question: z.ZodString;
|
|
8
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
10
|
+
amount_label: z.ZodOptional<z.ZodString>;
|
|
11
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
high: "high";
|
|
13
|
+
medium: "medium";
|
|
14
|
+
low: "low";
|
|
15
|
+
}>>;
|
|
16
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
field: z.ZodOptional<z.ZodString>;
|
|
18
|
+
issue: z.ZodString;
|
|
19
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
high: "high";
|
|
21
|
+
medium: "medium";
|
|
22
|
+
low: "low";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
options: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
label: z.ZodOptional<z.ZodString>;
|
|
32
|
+
url: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
resolved: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
option: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const decisionCardTool: {
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
input_schema: {
|
|
42
|
+
type: "object";
|
|
43
|
+
properties: {
|
|
44
|
+
type: {
|
|
45
|
+
type: string;
|
|
46
|
+
enum: string[];
|
|
47
|
+
};
|
|
48
|
+
id: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
decision_type: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
question: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
amount: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
currency: {
|
|
69
|
+
type: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
amount_label: {
|
|
73
|
+
type: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
severity: {
|
|
77
|
+
type: string;
|
|
78
|
+
enum: string[];
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
flags: {
|
|
82
|
+
type: string;
|
|
83
|
+
maxItems: number;
|
|
84
|
+
description: string;
|
|
85
|
+
items: {
|
|
86
|
+
type: string;
|
|
87
|
+
properties: {
|
|
88
|
+
field: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
issue: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
severity: {
|
|
95
|
+
type: string;
|
|
96
|
+
enum: string[];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
required: string[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
options: {
|
|
103
|
+
type: string;
|
|
104
|
+
minItems: number;
|
|
105
|
+
maxItems: number;
|
|
106
|
+
description: string;
|
|
107
|
+
items: {
|
|
108
|
+
type: string;
|
|
109
|
+
properties: {
|
|
110
|
+
id: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
label: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
recommended: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
required: string[];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
source: {
|
|
124
|
+
type: string;
|
|
125
|
+
description: string;
|
|
126
|
+
properties: {
|
|
127
|
+
label: {
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
url: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
resolved: {
|
|
136
|
+
type: string;
|
|
137
|
+
description: string;
|
|
138
|
+
properties: {
|
|
139
|
+
option: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
required: string[];
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
required: string[];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
//# sourceMappingURL=decision-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decision-card.d.ts","sourceRoot":"","sources":["../../src/schemas/decision-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyC7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE5B,CAAC"}
|
|
@@ -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"}
|