@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
3
|
-
"generated_at": "2026-06-
|
|
4
|
-
"schema_count":
|
|
2
|
+
"version": "0.1.58",
|
|
3
|
+
"generated_at": "2026-06-24T15:47:16.404Z",
|
|
4
|
+
"schema_count": 59,
|
|
5
5
|
"schemas": {
|
|
6
6
|
"data-table": {
|
|
7
7
|
"name": "render_data_table",
|
|
@@ -4737,6 +4737,230 @@
|
|
|
4737
4737
|
]
|
|
4738
4738
|
}
|
|
4739
4739
|
},
|
|
4740
|
+
"document-field-extraction": {
|
|
4741
|
+
"name": "render_document_field_extraction",
|
|
4742
|
+
"description": "Render extracted document fields as an interactive overlay on the page image(s) — 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.",
|
|
4743
|
+
"input_schema": {
|
|
4744
|
+
"type": "object",
|
|
4745
|
+
"properties": {
|
|
4746
|
+
"type": {
|
|
4747
|
+
"type": "string",
|
|
4748
|
+
"enum": [
|
|
4749
|
+
"document-field-extraction"
|
|
4750
|
+
]
|
|
4751
|
+
},
|
|
4752
|
+
"doc_type": {
|
|
4753
|
+
"type": "string"
|
|
4754
|
+
},
|
|
4755
|
+
"file_name": {
|
|
4756
|
+
"type": "string",
|
|
4757
|
+
"description": "Original uploaded filename; shown as the card title."
|
|
4758
|
+
},
|
|
4759
|
+
"payload_ref": {
|
|
4760
|
+
"type": "string",
|
|
4761
|
+
"description": "Durable store key returned by extract_document; the GenUI host expands it into pages/fields at render time. Pass this verbatim — do NOT hand-build pages/fields."
|
|
4762
|
+
},
|
|
4763
|
+
"store_id": {
|
|
4764
|
+
"type": "string",
|
|
4765
|
+
"description": "Docstore store id; present for persisted workstream docs. The host uses this to open the editable viewer."
|
|
4766
|
+
},
|
|
4767
|
+
"doc_id": {
|
|
4768
|
+
"type": "string",
|
|
4769
|
+
"description": "Docstore document id; present for persisted workstream docs. Required for the editable viewer."
|
|
4770
|
+
},
|
|
4771
|
+
"pages": {
|
|
4772
|
+
"type": "array",
|
|
4773
|
+
"items": {
|
|
4774
|
+
"type": "object",
|
|
4775
|
+
"properties": {
|
|
4776
|
+
"page": {
|
|
4777
|
+
"type": "number",
|
|
4778
|
+
"description": "0-indexed page number"
|
|
4779
|
+
},
|
|
4780
|
+
"imageUrl": {
|
|
4781
|
+
"type": "string"
|
|
4782
|
+
},
|
|
4783
|
+
"width_pt": {
|
|
4784
|
+
"type": "number"
|
|
4785
|
+
},
|
|
4786
|
+
"height_pt": {
|
|
4787
|
+
"type": "number"
|
|
4788
|
+
}
|
|
4789
|
+
},
|
|
4790
|
+
"required": [
|
|
4791
|
+
"page",
|
|
4792
|
+
"width_pt",
|
|
4793
|
+
"height_pt"
|
|
4794
|
+
]
|
|
4795
|
+
}
|
|
4796
|
+
},
|
|
4797
|
+
"fields": {
|
|
4798
|
+
"type": "array",
|
|
4799
|
+
"items": {
|
|
4800
|
+
"type": "object",
|
|
4801
|
+
"properties": {
|
|
4802
|
+
"field_key": {
|
|
4803
|
+
"type": "string"
|
|
4804
|
+
},
|
|
4805
|
+
"label": {
|
|
4806
|
+
"type": "string"
|
|
4807
|
+
},
|
|
4808
|
+
"value": {
|
|
4809
|
+
"type": "string"
|
|
4810
|
+
},
|
|
4811
|
+
"page": {
|
|
4812
|
+
"type": "number",
|
|
4813
|
+
"description": "0-indexed page number"
|
|
4814
|
+
},
|
|
4815
|
+
"bbox": {
|
|
4816
|
+
"type": "array",
|
|
4817
|
+
"items": {
|
|
4818
|
+
"type": "number"
|
|
4819
|
+
},
|
|
4820
|
+
"description": "[x0,y0,x1,y1] PDF points, origin bottom-left; null if unlocated"
|
|
4821
|
+
},
|
|
4822
|
+
"confidence": {
|
|
4823
|
+
"type": "number"
|
|
4824
|
+
},
|
|
4825
|
+
"confidence_tier": {
|
|
4826
|
+
"type": "string",
|
|
4827
|
+
"enum": [
|
|
4828
|
+
"green",
|
|
4829
|
+
"amber",
|
|
4830
|
+
"red"
|
|
4831
|
+
]
|
|
4832
|
+
},
|
|
4833
|
+
"badge": {
|
|
4834
|
+
"type": "string",
|
|
4835
|
+
"enum": [
|
|
4836
|
+
"SC",
|
|
4837
|
+
"CN",
|
|
4838
|
+
"AB",
|
|
4839
|
+
"SW"
|
|
4840
|
+
]
|
|
4841
|
+
},
|
|
4842
|
+
"state": {
|
|
4843
|
+
"type": "string",
|
|
4844
|
+
"enum": [
|
|
4845
|
+
"ok",
|
|
4846
|
+
"corrected",
|
|
4847
|
+
"missing",
|
|
4848
|
+
"warn"
|
|
4849
|
+
]
|
|
4850
|
+
},
|
|
4851
|
+
"entity_type": {
|
|
4852
|
+
"type": "string"
|
|
4853
|
+
},
|
|
4854
|
+
"is_primary": {
|
|
4855
|
+
"type": "boolean"
|
|
4856
|
+
}
|
|
4857
|
+
},
|
|
4858
|
+
"required": [
|
|
4859
|
+
"field_key",
|
|
4860
|
+
"label",
|
|
4861
|
+
"value",
|
|
4862
|
+
"page"
|
|
4863
|
+
]
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
"page_count": {
|
|
4867
|
+
"type": "number"
|
|
4868
|
+
},
|
|
4869
|
+
"pages_processed": {
|
|
4870
|
+
"type": "number"
|
|
4871
|
+
},
|
|
4872
|
+
"summary": {
|
|
4873
|
+
"type": "object",
|
|
4874
|
+
"description": "Deterministic document summary for the Details tab (display_name, organization, domain, stats, facts, tags). Produced by the extractor — pass through verbatim.",
|
|
4875
|
+
"properties": {
|
|
4876
|
+
"display_name": {
|
|
4877
|
+
"type": "string"
|
|
4878
|
+
},
|
|
4879
|
+
"short_name": {
|
|
4880
|
+
"type": "string"
|
|
4881
|
+
},
|
|
4882
|
+
"organization": {
|
|
4883
|
+
"type": "string"
|
|
4884
|
+
},
|
|
4885
|
+
"domain": {
|
|
4886
|
+
"type": "string"
|
|
4887
|
+
},
|
|
4888
|
+
"domain_group": {
|
|
4889
|
+
"type": "string"
|
|
4890
|
+
},
|
|
4891
|
+
"tax_year": {
|
|
4892
|
+
"type": "string"
|
|
4893
|
+
},
|
|
4894
|
+
"crumbs": {
|
|
4895
|
+
"type": "array",
|
|
4896
|
+
"items": {
|
|
4897
|
+
"type": "string"
|
|
4898
|
+
}
|
|
4899
|
+
},
|
|
4900
|
+
"tags": {
|
|
4901
|
+
"type": "array",
|
|
4902
|
+
"items": {
|
|
4903
|
+
"type": "string"
|
|
4904
|
+
}
|
|
4905
|
+
},
|
|
4906
|
+
"stats": {
|
|
4907
|
+
"type": "array",
|
|
4908
|
+
"items": {
|
|
4909
|
+
"type": "object",
|
|
4910
|
+
"properties": {
|
|
4911
|
+
"field_key": {
|
|
4912
|
+
"type": "string"
|
|
4913
|
+
},
|
|
4914
|
+
"label": {
|
|
4915
|
+
"type": "string"
|
|
4916
|
+
},
|
|
4917
|
+
"value": {
|
|
4918
|
+
"type": "string"
|
|
4919
|
+
},
|
|
4920
|
+
"caption": {
|
|
4921
|
+
"type": "string"
|
|
4922
|
+
}
|
|
4923
|
+
},
|
|
4924
|
+
"required": [
|
|
4925
|
+
"field_key",
|
|
4926
|
+
"label",
|
|
4927
|
+
"value"
|
|
4928
|
+
]
|
|
4929
|
+
}
|
|
4930
|
+
},
|
|
4931
|
+
"facts": {
|
|
4932
|
+
"type": "array",
|
|
4933
|
+
"items": {
|
|
4934
|
+
"type": "object",
|
|
4935
|
+
"properties": {
|
|
4936
|
+
"field_key": {
|
|
4937
|
+
"type": "string"
|
|
4938
|
+
},
|
|
4939
|
+
"label": {
|
|
4940
|
+
"type": "string"
|
|
4941
|
+
},
|
|
4942
|
+
"value": {
|
|
4943
|
+
"type": "string"
|
|
4944
|
+
},
|
|
4945
|
+
"badge": {
|
|
4946
|
+
"type": "string"
|
|
4947
|
+
}
|
|
4948
|
+
},
|
|
4949
|
+
"required": [
|
|
4950
|
+
"field_key",
|
|
4951
|
+
"label",
|
|
4952
|
+
"value"
|
|
4953
|
+
]
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4958
|
+
},
|
|
4959
|
+
"required": [
|
|
4960
|
+
"type"
|
|
4961
|
+
]
|
|
4962
|
+
}
|
|
4963
|
+
},
|
|
4740
4964
|
"decision-card": {
|
|
4741
4965
|
"name": "render_decision_card",
|
|
4742
4966
|
"description": "Render an inline human-in-the-loop (HITL) decision card — a single judgment the agent needs from the user, resolved in-thread. Shows a titled question with an optional dollar amount at stake, optional data-quality flags, and 2-5 mutually-exclusive resolution options (the first or `recommended` one renders as the primary action), plus an optional 'view source' link. Use for inline approve/choose decisions the user resolves directly in the conversation. NOT for handing off to an external review portal (use escalation-card) and NOT for collecting multiple typed fields (use render_builder).",
|