@docling/docling-client 2.131.0 → 2.132.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.
@@ -1,7 +1,7 @@
1
1
  # Python client parity
2
2
 
3
- This document compares `@docling/docling-client` with Docling Python 2.131.0
4
- at commit `cb14c87`, specifically:
3
+ This document compares `@docling/docling-client` with Docling Python 2.132.0
4
+ at commit `5c349dd`, specifically:
5
5
 
6
6
  - `DoclingServiceClient`
7
7
  - `AsyncDoclingServiceClient`
@@ -81,9 +81,10 @@ because async is its native execution model.
81
81
  | Generic connector | No | Yes | Forward-compatible `kind` plus connector fields. |
82
82
 
83
83
  TypeScript mirrors Python's extension-to-input-format map, including Office
84
- templates/macros, images, XML variants, `tar.gz`, audio/video, email, EPUB, and
85
- Box Note. Unknown extensions use the same PDF fallback. Local multipart MIME is
86
- inferred from the filename when known.
84
+ templates/macros, images, XML variants, `tar.gz`, audio/video, email, EPUB,
85
+ Box Note, iWork (`.pages`, `.key`), EBCDIC, AFP, RTF, and MHTML. Unknown
86
+ extensions use the same PDF fallback. Local multipart MIME is inferred from the
87
+ filename when known.
87
88
 
88
89
  ## Targets and target-specific results
89
90
 
package/dist/index.cjs CHANGED
@@ -792,6 +792,7 @@ var EXTENSION_FORMATS = {
792
792
  dotm: "docx",
793
793
  doc: "doc",
794
794
  dot: "doc",
795
+ rtf: "rtf",
795
796
  pptx: "pptx",
796
797
  potx: "pptx",
797
798
  ppsx: "pptx",
@@ -804,6 +805,8 @@ var EXTENSION_FORMATS = {
804
805
  html: "html",
805
806
  htm: "html",
806
807
  xhtml: "html",
808
+ mhtml: "mhtml",
809
+ mht: "mhtml",
807
810
  md: "md",
808
811
  markdown: "md",
809
812
  txt: "md",
@@ -813,6 +816,8 @@ var EXTENSION_FORMATS = {
813
816
  csv: "csv",
814
817
  xlsx: "xlsx",
815
818
  xlsm: "xlsx",
819
+ xltx: "xlsx",
820
+ xltm: "xlsx",
816
821
  xls: "xls",
817
822
  xlt: "xls",
818
823
  asciidoc: "asciidoc",
@@ -833,6 +838,7 @@ var EXTENSION_FORMATS = {
833
838
  tiff: "image",
834
839
  bmp: "image",
835
840
  webp: "image",
841
+ gif: "image",
836
842
  wav: "audio",
837
843
  mp3: "audio",
838
844
  m4a: "audio",
@@ -854,8 +860,14 @@ var EXTENSION_FORMATS = {
854
860
  tex: "latex",
855
861
  latex: "latex",
856
862
  eml: "email",
863
+ msg: "email",
857
864
  epub: "epub",
858
- boxnote: "boxnote"
865
+ boxnote: "boxnote",
866
+ pages: "iwork_pages",
867
+ key: "iwork_keynote",
868
+ ebc: "ebcdic",
869
+ ebcdic: "ebcdic",
870
+ afp: "afp"
859
871
  };
860
872
  async function normalizeSourceInput(input, signal) {
861
873
  throwIfAborted(signal);
@@ -1302,12 +1314,15 @@ function guessMimeType(filename) {
1302
1314
  pdf: "application/pdf",
1303
1315
  doc: "application/msword",
1304
1316
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1317
+ rtf: "application/rtf",
1305
1318
  ppt: "application/vnd.ms-powerpoint",
1306
1319
  pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
1307
1320
  xls: "application/vnd.ms-excel",
1308
1321
  xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
1309
1322
  html: "text/html",
1310
1323
  htm: "text/html",
1324
+ mhtml: "application/x-mimearchive",
1325
+ mht: "application/x-mimearchive",
1311
1326
  md: "text/markdown",
1312
1327
  txt: "text/plain",
1313
1328
  csv: "text/csv",
@@ -1317,44 +1332,54 @@ function guessMimeType(filename) {
1317
1332
  jpeg: "image/jpeg",
1318
1333
  tif: "image/tiff",
1319
1334
  tiff: "image/tiff",
1335
+ gif: "image/gif",
1336
+ webp: "image/webp",
1337
+ bmp: "image/bmp",
1320
1338
  wav: "audio/wav",
1321
1339
  mp3: "audio/mpeg",
1322
1340
  mp4: "video/mp4",
1323
1341
  vtt: "text/vtt",
1324
1342
  eml: "message/rfc822",
1343
+ msg: "application/vnd.ms-outlook",
1325
1344
  epub: "application/epub+zip"
1326
1345
  }[extension] ?? "application/octet-stream";
1327
1346
  }
1328
1347
  var INPUT_FORMATS = /* @__PURE__ */ new Set([
1329
1348
  "docx",
1330
1349
  "doc",
1350
+ "rtf",
1331
1351
  "pptx",
1352
+ "ppt",
1332
1353
  "html",
1354
+ "mhtml",
1333
1355
  "image",
1334
1356
  "pdf",
1335
1357
  "asciidoc",
1336
1358
  "md",
1337
1359
  "csv",
1338
1360
  "xlsx",
1339
- "xml_uspto",
1340
- "xml_jats",
1341
- "json_docling",
1342
- "dclx",
1343
- "audio",
1344
- "vtt",
1345
- "xml_xbrl",
1346
- "mets_gbs",
1347
- "latex",
1348
- "ppt",
1349
1361
  "xls",
1350
1362
  "odt",
1351
1363
  "ods",
1352
1364
  "odp",
1365
+ "xml_uspto",
1366
+ "xml_jats",
1367
+ "xml_xbrl",
1353
1368
  "xml_doclang",
1369
+ "dclx",
1370
+ "mets_gbs",
1371
+ "json_docling",
1372
+ "audio",
1354
1373
  "video",
1374
+ "vtt",
1375
+ "latex",
1355
1376
  "email",
1356
1377
  "epub",
1357
- "boxnote"
1378
+ "boxnote",
1379
+ "iwork_pages",
1380
+ "iwork_keynote",
1381
+ "ebcdic",
1382
+ "afp"
1358
1383
  ]);
1359
1384
  var OUTPUT_FORMATS = /* @__PURE__ */ new Set([
1360
1385
  "md",
@@ -1367,15 +1392,17 @@ var OUTPUT_FORMATS = /* @__PURE__ */ new Set([
1367
1392
  "vtt",
1368
1393
  "doclang",
1369
1394
  "dclx",
1370
- "chunks"
1395
+ "chunks",
1396
+ "latex"
1371
1397
  ]);
1372
- var PIPELINES = /* @__PURE__ */ new Set(["legacy", "standard", "vlm", "asr"]);
1398
+ var PIPELINES = /* @__PURE__ */ new Set(["legacy", "standard", "native", "vlm", "asr"]);
1373
1399
  var IMAGE_EXPORT_MODES = /* @__PURE__ */ new Set(["placeholder", "embedded", "referenced"]);
1374
1400
  var TABLE_MODES = /* @__PURE__ */ new Set(["fast", "accurate"]);
1375
1401
  var PDF_BACKENDS = /* @__PURE__ */ new Set([
1376
1402
  "pypdfium2",
1377
1403
  "docling_parse",
1378
1404
  "threaded_docling_parse",
1405
+ "_docling_parse",
1379
1406
  "dlparse_v1",
1380
1407
  "dlparse_v2",
1381
1408
  "dlparse_v4"
@@ -1403,11 +1430,14 @@ var VLM_RESPONSE_FORMATS = /* @__PURE__ */ new Set([
1403
1430
  "doclang",
1404
1431
  "markdown",
1405
1432
  "deepseekocr_markdown",
1433
+ "unlimited_ocr_markdown",
1406
1434
  "html",
1407
1435
  "otsl",
1408
1436
  "plaintext",
1409
1437
  "chandra_html",
1410
- "dots_json"
1438
+ "dots_json",
1439
+ "nemotron_parse_v2",
1440
+ "mineru2"
1411
1441
  ]);
1412
1442
  var VLM_INFERENCE_FRAMEWORKS = /* @__PURE__ */ new Set(["mlx", "transformers", "vllm"]);
1413
1443
  var TRANSFORMERS_MODEL_TYPES = /* @__PURE__ */ new Set([