@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.
@@ -1,7 +1,7 @@
1
1
  # Python client parity
2
2
 
3
- This document compares `@docling/docling-client` with Docling Python 2.147.0
4
- at commit `e3681a6`, specifically:
3
+ This document compares `@docling/docling-client` with Docling Python 2.148.0
4
+ at commit `0fa0918`, specifically:
5
5
 
6
6
  - `DoclingServiceClient`
7
7
  - `AsyncDoclingServiceClient`
@@ -160,6 +160,50 @@ High-level limits match Python:
160
160
  TypeScript restricts limit values to safe integers, which is stricter than
161
161
  Python's unbounded integer type.
162
162
 
163
+ ## Service client changes (v2.148.0)
164
+
165
+ Python v2.148.0 at commit `0fa0918` adds two service-facing changes since
166
+ v2.147.0. The remaining changes (superscript/subscript detection, backend
167
+ fixes) are server-side or core-library behavior with no service-client or
168
+ service-datamodel surface.
169
+
170
+ - `InputFormat.CALENDAR` (`"calendar"`) for the new iCalendar backend, with the
171
+ extensions `ics`, `ical`, `icalendar`, and `ifb` and the `text/calendar` MIME
172
+ type. `ConvertDocumentsOptions.from_formats` defaults to every `InputFormat`:
173
+
174
+ ```
175
+ https://github.com/docling-project/docling/blob/v2.148.0/docling/datamodel/base_models.py#L136
176
+ ```
177
+
178
+ The TypeScript `InputFormat` union includes `'calendar'`, the `from_formats`
179
+ validator accepts it, and the source normalizer maps those extensions to it
180
+ through the same extension table that Python builds in
181
+ `_build_extension_to_format_map()`:
182
+
183
+ ```
184
+ https://github.com/docling-project/docling/blob/v2.148.0/docling/service_client/client.py#L906
185
+ ```
186
+
187
+ - `ResponseFormat` gained `SURYA_HTML` (Surya OCR 2.5), `UNLIMITED_OCR2`,
188
+ `LIGHTONOCR_MARKDOWN`, and `NEMOTRON_PARSE_V3_5`, used by
189
+ `VlmModelLocal.response_format` and `VlmModelApi.response_format`:
190
+
191
+ ```
192
+ https://github.com/docling-project/docling/blob/v2.148.0/docling/datamodel/pipeline_options_vlm_model.py#L104
193
+ ```
194
+
195
+ The TypeScript `VlmResponseFormat` (alias `ResponseFormat`) union and the
196
+ request-option validator accept the new values.
197
+
198
+ | Python (v2.148.0) | TypeScript | Wire key |
199
+ | ------------------------------------ | -------------------------------------------- | --------------------- |
200
+ | `InputFormat.CALENDAR` | `InputFormat` / `INPUT_FORMATS` | `calendar` |
201
+ | `FormatToExtensions[CALENDAR]` | `EXTENSION_FORMATS` / `guessMimeType()` | `ics`, `ifb`, ... |
202
+ | `ResponseFormat.SURYA_HTML` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `surya_html` |
203
+ | `ResponseFormat.UNLIMITED_OCR2` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `unlimited_ocr2` |
204
+ | `ResponseFormat.LIGHTONOCR_MARKDOWN` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `lightonocr_markdown` |
205
+ | `ResponseFormat.NEMOTRON_PARSE_V3_5` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `nemotron_parse_v3_5` |
206
+
163
207
  ## Service client changes (v2.147.0)
164
208
 
165
209
  Python v2.147.0 at commit `e3681a6` formally exposes `artifact_url_allowlist` and `_allow_private_artifact_urls` in `DoclingServiceClient.__init__`:
package/dist/index.cjs CHANGED
@@ -907,7 +907,11 @@ var EXTENSION_FORMATS = {
907
907
  numbers: "iwork_numbers",
908
908
  ebc: "ebcdic",
909
909
  ebcdic: "ebcdic",
910
- afp: "afp"
910
+ afp: "afp",
911
+ ics: "calendar",
912
+ ical: "calendar",
913
+ icalendar: "calendar",
914
+ ifb: "calendar"
911
915
  };
912
916
  async function normalizeSourceInput(input, signal) {
913
917
  throwIfAborted(signal);
@@ -1384,7 +1388,9 @@ function guessMimeType(filename) {
1384
1388
  vtt: "text/vtt",
1385
1389
  eml: "message/rfc822",
1386
1390
  msg: "application/vnd.ms-outlook",
1387
- epub: "application/epub+zip"
1391
+ epub: "application/epub+zip",
1392
+ ics: "text/calendar",
1393
+ ifb: "text/calendar"
1388
1394
  }[extension] ?? "application/octet-stream";
1389
1395
  }
1390
1396
  var INPUT_FORMATS = /* @__PURE__ */ new Set([
@@ -1423,7 +1429,8 @@ var INPUT_FORMATS = /* @__PURE__ */ new Set([
1423
1429
  "iwork_keynote",
1424
1430
  "iwork_numbers",
1425
1431
  "ebcdic",
1426
- "afp"
1432
+ "afp",
1433
+ "calendar"
1427
1434
  ]);
1428
1435
  var OUTPUT_FORMATS = /* @__PURE__ */ new Set([
1429
1436
  "md",
@@ -1475,12 +1482,16 @@ var VLM_RESPONSE_FORMATS = /* @__PURE__ */ new Set([
1475
1482
  "markdown",
1476
1483
  "deepseekocr_markdown",
1477
1484
  "unlimited_ocr_markdown",
1485
+ "unlimited_ocr2",
1486
+ "lightonocr_markdown",
1478
1487
  "html",
1479
1488
  "otsl",
1480
1489
  "plaintext",
1481
1490
  "chandra_html",
1491
+ "surya_html",
1482
1492
  "dots_json",
1483
1493
  "nemotron_parse_v2",
1494
+ "nemotron_parse_v3_5",
1484
1495
  "mineru2"
1485
1496
  ]);
1486
1497
  var VLM_INFERENCE_FRAMEWORKS = /* @__PURE__ */ new Set(["mlx", "transformers", "vllm"]);