@docling/docling-client 2.147.0 → 2.148.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/PYTHON_CLIENT_PARITY.md +46 -2
- package/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12,7 +12,7 @@ interface DoclingDocument {
|
|
|
12
12
|
name: string;
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
type InputFormat = 'docx' | 'doc' | 'rtf' | 'pptx' | 'ppt' | 'html' | 'mhtml' | 'image' | 'pdf' | 'asciidoc' | 'md' | 'csv' | 'xlsx' | 'xls' | 'odt' | 'ods' | 'odp' | 'xml_uspto' | 'xml_jats' | 'xml_xbrl' | 'xml_doclang' | 'dclx' | 'mets_gbs' | 'json_docling' | 'audio' | 'video' | 'vtt' | 'latex' | 'email' | 'epub' | 'boxnote' | 'iwork_pages' | 'iwork_keynote' | 'iwork_numbers' | 'ebcdic' | 'afp';
|
|
15
|
+
type InputFormat = 'docx' | 'doc' | 'rtf' | 'pptx' | 'ppt' | 'html' | 'mhtml' | 'image' | 'pdf' | 'asciidoc' | 'md' | 'csv' | 'xlsx' | 'xls' | 'odt' | 'ods' | 'odp' | 'xml_uspto' | 'xml_jats' | 'xml_xbrl' | 'xml_doclang' | 'dclx' | 'mets_gbs' | 'json_docling' | 'audio' | 'video' | 'vtt' | 'latex' | 'email' | 'epub' | 'boxnote' | 'iwork_pages' | 'iwork_keynote' | 'iwork_numbers' | 'ebcdic' | 'afp' | 'calendar';
|
|
16
16
|
type OutputFormat = 'md' | 'json' | 'yaml' | 'html' | 'html_split_page' | 'text' | 'doctags' | 'vtt' | 'doclang' | 'dclx' | 'chunks' | 'latex';
|
|
17
17
|
type ProcessingPipeline = 'legacy' | 'standard' | 'native' | 'vlm' | 'asr';
|
|
18
18
|
type TableMode = 'fast' | 'accurate';
|
|
@@ -20,7 +20,7 @@ type TableFormerMode = TableMode;
|
|
|
20
20
|
type ImageExportMode = 'placeholder' | 'embedded' | 'referenced';
|
|
21
21
|
type ImageRefMode = ImageExportMode;
|
|
22
22
|
type PdfBackend = 'pypdfium2' | 'docling_parse' | 'threaded_docling_parse' | '_docling_parse' | 'dlparse_v1' | 'dlparse_v2' | 'dlparse_v4';
|
|
23
|
-
type VlmResponseFormat = 'doctags' | 'doclang' | 'markdown' | 'deepseekocr_markdown' | 'unlimited_ocr_markdown' | 'html' | 'otsl' | 'plaintext' | 'chandra_html' | 'dots_json' | 'nemotron_parse_v2' | 'mineru2';
|
|
23
|
+
type VlmResponseFormat = 'doctags' | 'doclang' | 'markdown' | 'deepseekocr_markdown' | 'unlimited_ocr_markdown' | 'unlimited_ocr2' | 'lightonocr_markdown' | 'html' | 'otsl' | 'plaintext' | 'chandra_html' | 'surya_html' | 'dots_json' | 'nemotron_parse_v2' | 'nemotron_parse_v3_5' | 'mineru2';
|
|
24
24
|
type ResponseFormat = VlmResponseFormat;
|
|
25
25
|
type VlmInferenceFramework = 'mlx' | 'transformers' | 'vllm';
|
|
26
26
|
type InferenceFramework = VlmInferenceFramework;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface DoclingDocument {
|
|
|
12
12
|
name: string;
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
type InputFormat = 'docx' | 'doc' | 'rtf' | 'pptx' | 'ppt' | 'html' | 'mhtml' | 'image' | 'pdf' | 'asciidoc' | 'md' | 'csv' | 'xlsx' | 'xls' | 'odt' | 'ods' | 'odp' | 'xml_uspto' | 'xml_jats' | 'xml_xbrl' | 'xml_doclang' | 'dclx' | 'mets_gbs' | 'json_docling' | 'audio' | 'video' | 'vtt' | 'latex' | 'email' | 'epub' | 'boxnote' | 'iwork_pages' | 'iwork_keynote' | 'iwork_numbers' | 'ebcdic' | 'afp';
|
|
15
|
+
type InputFormat = 'docx' | 'doc' | 'rtf' | 'pptx' | 'ppt' | 'html' | 'mhtml' | 'image' | 'pdf' | 'asciidoc' | 'md' | 'csv' | 'xlsx' | 'xls' | 'odt' | 'ods' | 'odp' | 'xml_uspto' | 'xml_jats' | 'xml_xbrl' | 'xml_doclang' | 'dclx' | 'mets_gbs' | 'json_docling' | 'audio' | 'video' | 'vtt' | 'latex' | 'email' | 'epub' | 'boxnote' | 'iwork_pages' | 'iwork_keynote' | 'iwork_numbers' | 'ebcdic' | 'afp' | 'calendar';
|
|
16
16
|
type OutputFormat = 'md' | 'json' | 'yaml' | 'html' | 'html_split_page' | 'text' | 'doctags' | 'vtt' | 'doclang' | 'dclx' | 'chunks' | 'latex';
|
|
17
17
|
type ProcessingPipeline = 'legacy' | 'standard' | 'native' | 'vlm' | 'asr';
|
|
18
18
|
type TableMode = 'fast' | 'accurate';
|
|
@@ -20,7 +20,7 @@ type TableFormerMode = TableMode;
|
|
|
20
20
|
type ImageExportMode = 'placeholder' | 'embedded' | 'referenced';
|
|
21
21
|
type ImageRefMode = ImageExportMode;
|
|
22
22
|
type PdfBackend = 'pypdfium2' | 'docling_parse' | 'threaded_docling_parse' | '_docling_parse' | 'dlparse_v1' | 'dlparse_v2' | 'dlparse_v4';
|
|
23
|
-
type VlmResponseFormat = 'doctags' | 'doclang' | 'markdown' | 'deepseekocr_markdown' | 'unlimited_ocr_markdown' | 'html' | 'otsl' | 'plaintext' | 'chandra_html' | 'dots_json' | 'nemotron_parse_v2' | 'mineru2';
|
|
23
|
+
type VlmResponseFormat = 'doctags' | 'doclang' | 'markdown' | 'deepseekocr_markdown' | 'unlimited_ocr_markdown' | 'unlimited_ocr2' | 'lightonocr_markdown' | 'html' | 'otsl' | 'plaintext' | 'chandra_html' | 'surya_html' | 'dots_json' | 'nemotron_parse_v2' | 'nemotron_parse_v3_5' | 'mineru2';
|
|
24
24
|
type ResponseFormat = VlmResponseFormat;
|
|
25
25
|
type VlmInferenceFramework = 'mlx' | 'transformers' | 'vllm';
|
|
26
26
|
type InferenceFramework = VlmInferenceFramework;
|
package/dist/index.js
CHANGED
|
@@ -832,7 +832,11 @@ var EXTENSION_FORMATS = {
|
|
|
832
832
|
numbers: "iwork_numbers",
|
|
833
833
|
ebc: "ebcdic",
|
|
834
834
|
ebcdic: "ebcdic",
|
|
835
|
-
afp: "afp"
|
|
835
|
+
afp: "afp",
|
|
836
|
+
ics: "calendar",
|
|
837
|
+
ical: "calendar",
|
|
838
|
+
icalendar: "calendar",
|
|
839
|
+
ifb: "calendar"
|
|
836
840
|
};
|
|
837
841
|
async function normalizeSourceInput(input, signal) {
|
|
838
842
|
throwIfAborted(signal);
|
|
@@ -1309,7 +1313,9 @@ function guessMimeType(filename) {
|
|
|
1309
1313
|
vtt: "text/vtt",
|
|
1310
1314
|
eml: "message/rfc822",
|
|
1311
1315
|
msg: "application/vnd.ms-outlook",
|
|
1312
|
-
epub: "application/epub+zip"
|
|
1316
|
+
epub: "application/epub+zip",
|
|
1317
|
+
ics: "text/calendar",
|
|
1318
|
+
ifb: "text/calendar"
|
|
1313
1319
|
}[extension] ?? "application/octet-stream";
|
|
1314
1320
|
}
|
|
1315
1321
|
var INPUT_FORMATS = /* @__PURE__ */ new Set([
|
|
@@ -1348,7 +1354,8 @@ var INPUT_FORMATS = /* @__PURE__ */ new Set([
|
|
|
1348
1354
|
"iwork_keynote",
|
|
1349
1355
|
"iwork_numbers",
|
|
1350
1356
|
"ebcdic",
|
|
1351
|
-
"afp"
|
|
1357
|
+
"afp",
|
|
1358
|
+
"calendar"
|
|
1352
1359
|
]);
|
|
1353
1360
|
var OUTPUT_FORMATS = /* @__PURE__ */ new Set([
|
|
1354
1361
|
"md",
|
|
@@ -1400,12 +1407,16 @@ var VLM_RESPONSE_FORMATS = /* @__PURE__ */ new Set([
|
|
|
1400
1407
|
"markdown",
|
|
1401
1408
|
"deepseekocr_markdown",
|
|
1402
1409
|
"unlimited_ocr_markdown",
|
|
1410
|
+
"unlimited_ocr2",
|
|
1411
|
+
"lightonocr_markdown",
|
|
1403
1412
|
"html",
|
|
1404
1413
|
"otsl",
|
|
1405
1414
|
"plaintext",
|
|
1406
1415
|
"chandra_html",
|
|
1416
|
+
"surya_html",
|
|
1407
1417
|
"dots_json",
|
|
1408
1418
|
"nemotron_parse_v2",
|
|
1419
|
+
"nemotron_parse_v3_5",
|
|
1409
1420
|
"mineru2"
|
|
1410
1421
|
]);
|
|
1411
1422
|
var VLM_INFERENCE_FRAMEWORKS = /* @__PURE__ */ new Set(["mlx", "transformers", "vllm"]);
|