@docling/docling-client 2.147.0 → 2.149.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.149.0
4
+ at commit `8103d81`, specifically:
5
5
 
6
6
  - `DoclingServiceClient`
7
7
  - `AsyncDoclingServiceClient`
@@ -160,12 +160,79 @@ 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.149.0)
164
+
165
+ Python v2.149.0 at commit `8103d81` is a release bump over v2.148.0.
166
+ All service-client and service datamodel APIs, options, enums, endpoints,
167
+ watchers, schedulers, and error models remain in full parity:
168
+
169
+ - `DoclingServiceClient` and `AsyncDoclingServiceClient`:
170
+ ```
171
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L914
172
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/_async_client.py#L109
173
+ ```
174
+ - Service datamodels and options in `docling.datamodel.service`:
175
+ ```
176
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/options.py#L302
177
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/requests.py#L199
178
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/responses.py#L264
179
+ ```
180
+ - Task status watchers and jobs:
181
+ ```
182
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/watchers.py#L92
183
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/job.py#L67
184
+ ```
185
+
186
+ ## Service client changes (v2.148.0)
187
+
188
+ Python v2.148.0 at commit `0fa0918` adds two service-facing changes since
189
+ v2.147.0. The remaining changes (superscript/subscript detection, backend
190
+ fixes) are server-side or core-library behavior with no service-client or
191
+ service-datamodel surface.
192
+
193
+ - `InputFormat.CALENDAR` (`"calendar"`) for the new iCalendar backend, with the
194
+ extensions `ics`, `ical`, `icalendar`, and `ifb` and the `text/calendar` MIME
195
+ type. `ConvertDocumentsOptions.from_formats` defaults to every `InputFormat`:
196
+
197
+ ```
198
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/base_models.py#L136
199
+ ```
200
+
201
+ The TypeScript `InputFormat` union includes `'calendar'`, the `from_formats`
202
+ validator accepts it, and the source normalizer maps those extensions to it
203
+ through the same extension table that Python builds in
204
+ `_build_extension_to_format_map()`:
205
+
206
+ ```
207
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L906
208
+ ```
209
+
210
+ - `ResponseFormat` gained `SURYA_HTML` (Surya OCR 2.5), `UNLIMITED_OCR2`,
211
+ `LIGHTONOCR_MARKDOWN`, and `NEMOTRON_PARSE_V3_5`, used by
212
+ `VlmModelLocal.response_format` and `VlmModelApi.response_format`:
213
+
214
+ ```
215
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/pipeline_options_vlm_model.py#L120
216
+ ```
217
+
218
+ The TypeScript `VlmResponseFormat` (alias `ResponseFormat`) union and the
219
+ request-option validator accept the new values.
220
+
221
+ | Python (v2.148.0) | TypeScript | Wire key |
222
+ | ------------------------------------ | -------------------------------------------- | --------------------- |
223
+ | `InputFormat.CALENDAR` | `InputFormat` / `INPUT_FORMATS` | `calendar` |
224
+ | `FormatToExtensions[CALENDAR]` | `EXTENSION_FORMATS` / `guessMimeType()` | `ics`, `ifb`, ... |
225
+ | `ResponseFormat.SURYA_HTML` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `surya_html` |
226
+ | `ResponseFormat.UNLIMITED_OCR2` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `unlimited_ocr2` |
227
+ | `ResponseFormat.LIGHTONOCR_MARKDOWN` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `lightonocr_markdown` |
228
+ | `ResponseFormat.NEMOTRON_PARSE_V3_5` | `VlmResponseFormat` / `VLM_RESPONSE_FORMATS` | `nemotron_parse_v3_5` |
229
+
163
230
  ## Service client changes (v2.147.0)
164
231
 
165
232
  Python v2.147.0 at commit `e3681a6` formally exposes `artifact_url_allowlist` and `_allow_private_artifact_urls` in `DoclingServiceClient.__init__`:
166
233
 
167
234
  ```
168
- https://github.com/docling-project/docling/blob/v2.147.0/docling/service_client/client.py#L933
235
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L933
169
236
  ```
170
237
 
171
238
  TypeScript fully supports these options:
@@ -188,7 +255,7 @@ with no service-client or service-datamodel surface.
188
255
  - `ArtifactRef.artifact_type` now allows `"chunks"`:
189
256
 
190
257
  ```
191
- https://github.com/docling-project/docling/blob/v2.146.0/docling/datamodel/service/responses.py#L148
258
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/responses.py#L138
192
259
  ```
193
260
 
194
261
  The TypeScript `ArtifactType` union includes `'chunks'` and the presigned
@@ -202,7 +269,7 @@ with no service-client or service-datamodel surface.
202
269
  status and appends the presigned detail:
203
270
 
204
271
  ```
205
- https://github.com/docling-project/docling/blob/v2.146.0/docling/service_client/client.py#L857
272
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L857
206
273
  ```
207
274
 
208
275
  TypeScript `combineInBodyFallbackError()` mirrors this and throws a
@@ -227,7 +294,7 @@ behavior with no service-client or service-datamodel surface.
227
294
  download name for the archive:
228
295
 
229
296
  ```
230
- https://github.com/docling-project/docling/blob/v2.145.0/docling/datamodel/service/responses.py#L122
297
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/responses.py#L122
231
298
  ```
232
299
 
233
300
  The TypeScript `ZipArchiveResult` interface exposes `filename?: string | null`.
@@ -239,7 +306,7 @@ behavior with no service-client or service-datamodel surface.
239
306
  the effective range differs from the merged options:
240
307
 
241
308
  ```
242
- https://github.com/docling-project/docling/blob/v2.145.0/docling/service_client/client.py#L454
309
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L454
243
310
  ```
244
311
 
245
312
  TypeScript `applyPageLimits()` mirrors this: with no `page_range`, `pageRange`,
@@ -265,7 +332,7 @@ Python v2.141.0 to use an internal `_run_bounded()` helper from
265
332
  `docling/service_client/_scheduler.py` for bounded concurrency fan-out:
266
333
 
267
334
  ```
268
- https://github.com/docling-project/docling/blob/v2.142.0/docling/service_client/_scheduler.py#L31
335
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/_scheduler.py#L31
269
336
  ```
270
337
 
271
338
  The TypeScript scheduler already implements equivalent bounded-concurrency
@@ -277,7 +344,7 @@ changes are needed; this is a pure internal refactoring on the Python side.
277
344
  `ConfidenceScores` gained a recursive `pages` field in Python v2.139.0:
278
345
 
279
346
  ```
280
- https://github.com/docling-project/docling/blob/v2.142.0/docling/datamodel/service/responses.py#L45
347
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/responses.py#L45
281
348
  ```
282
349
 
283
350
  When present, it maps 1-based page numbers to per-page `ConfidenceScores`
@@ -295,7 +362,7 @@ objects. The TypeScript `ConfidenceScores` interface includes the
295
362
  `content` to `document` in Python v2.133.0:
296
363
 
297
364
  ```
298
- https://github.com/docling-project/docling/blob/v2.142.0/docling/datamodel/service/responses.py#L84
365
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/service/responses.py#L80
299
366
  ```
300
367
 
301
368
  Pydantic continues to serialize the field as `content` on the wire via
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"]);