@docmana/sdk 0.37.0 → 0.38.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/CHANGELOG.md +5 -0
- package/README.md +21 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models/docmana-extraction-result.model.d.ts +30 -1
- package/dist/reviews.d.ts +14 -0
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.0 - 2026-11-05
|
|
4
|
+
|
|
5
|
+
- Expose optional extraction grounding, with field origins, page evidence and tool-call references.
|
|
6
|
+
- Export types for review locations keyed by item ID, using the existing conditional document request.
|
|
7
|
+
|
|
3
8
|
## 0.37.0 - 2026-11-05
|
|
4
9
|
|
|
5
10
|
- Support upstream field and classification corrections through the existing `continue` decision.
|
package/README.md
CHANGED
|
@@ -524,6 +524,27 @@ user confirmation before submitting the same file with `confirmOverwrite: true`.
|
|
|
524
524
|
`remove(id, options)` permanently deletes the formula and its authoring data;
|
|
525
525
|
confirm that action with the user. Import and deletion do not use operation IDs.
|
|
526
526
|
|
|
527
|
+
## Grounding
|
|
528
|
+
|
|
529
|
+
Consumer Edge may include `grounding` on an extraction result at
|
|
530
|
+
`documents[docKey].extractions[stepName]`. `DocmanaExtractionResult` exposes
|
|
531
|
+
this metadata separately from the extracted `data`. Each field has a JSON
|
|
532
|
+
Pointer into `data`, an origin, a nullable probability and its evidence.
|
|
533
|
+
One field can have several rectangles on one or more pages.
|
|
534
|
+
|
|
535
|
+
Rectangles are `[x0, y0, x1, y1]` in page fractions measured from the top left.
|
|
536
|
+
Result pages are one-based within the submitted file (within the generated PDF
|
|
537
|
+
for images grouped by Consumer Edge). A `DERIVED` value can point to document
|
|
538
|
+
evidence or to a tool name and zero-based call index. Tool-only values have
|
|
539
|
+
empty page evidence. Older Consumer versions can omit `tools`, and an extraction
|
|
540
|
+
can omit `grounding` entirely.
|
|
541
|
+
|
|
542
|
+
During human review, `reviews.document(executionId, docKey, "locations", options)`
|
|
543
|
+
returns a `Response` whose JSON body has type `ReviewLocationsResponse`. The
|
|
544
|
+
locations are keyed by review item ID and use one-based pages of the **reviewed
|
|
545
|
+
document**, matching the preview images. Items without page evidence are omitted.
|
|
546
|
+
Use `ifNoneMatch` with the response `ETag` and handle `304` before reading JSON.
|
|
547
|
+
|
|
527
548
|
## Human review of formula executions
|
|
528
549
|
|
|
529
550
|
The native pending queue omits documents: load the selected task with `reviews.get()`
|