parze 0.2.5 → 0.2.7
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 +3 -3
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Parse a document into structured text.
|
|
|
62
62
|
- `options` (object, optional):
|
|
63
63
|
- `outputFormat`: "structured" | "markdown" | "json"
|
|
64
64
|
- `preserveTables`: boolean
|
|
65
|
-
- `extractionMode`: "
|
|
65
|
+
- `extractionMode`: "ai_only" | "auto" | "ocr_only" | "identity_doc". Defaults to the API's `ai_only` mode when omitted.
|
|
66
66
|
|
|
67
67
|
**Returns:** Promise with parsed text and metadata
|
|
68
68
|
|
|
@@ -82,9 +82,9 @@ Extract structured data from a file. Parse runs internally.
|
|
|
82
82
|
- `extractionSchema` (object): Schema defining fields to extract
|
|
83
83
|
- `options` (object, optional):
|
|
84
84
|
- `preserveTables`: boolean
|
|
85
|
-
- `extractionMode`: "
|
|
85
|
+
- `extractionMode`: "ai_only" | "auto" | "ocr_only" | "identity_doc". Defaults to the API's `ai_only` mode when omitted.
|
|
86
86
|
|
|
87
|
-
**Returns:** Promise with extracted data and
|
|
87
|
+
**Returns:** Promise with extracted data and field metadata
|
|
88
88
|
|
|
89
89
|
### `validate(filePath(s), options?)`
|
|
90
90
|
Validate document quality (pre) or extracted data (post).
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export interface ParzeClientOptions {
|
|
|
5
5
|
export interface ParseOptions {
|
|
6
6
|
outputFormat?: 'structured' | 'markdown' | 'json';
|
|
7
7
|
preserveTables?: boolean;
|
|
8
|
-
extractionMode?: '
|
|
8
|
+
extractionMode?: 'ai_only' | 'auto' | 'ocr_only' | 'identity_doc';
|
|
9
9
|
}
|
|
10
10
|
export interface ExtractFileOptions {
|
|
11
11
|
preserveTables?: boolean;
|
|
12
|
-
extractionMode?: '
|
|
12
|
+
extractionMode?: 'ai_only' | 'auto' | 'ocr_only' | 'identity_doc';
|
|
13
13
|
}
|
|
14
14
|
export interface ValidateOptions {
|
|
15
15
|
validationType?: 'pre' | 'post';
|