@docling/docling-client 2.148.0 → 2.149.1

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.148.0
4
- at commit `0fa0918`, 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,6 +160,29 @@ 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
+
163
186
  ## Service client changes (v2.148.0)
164
187
 
165
188
  Python v2.148.0 at commit `0fa0918` adds two service-facing changes since
@@ -172,7 +195,7 @@ service-datamodel surface.
172
195
  type. `ConvertDocumentsOptions.from_formats` defaults to every `InputFormat`:
173
196
 
174
197
  ```
175
- https://github.com/docling-project/docling/blob/v2.148.0/docling/datamodel/base_models.py#L136
198
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/base_models.py#L136
176
199
  ```
177
200
 
178
201
  The TypeScript `InputFormat` union includes `'calendar'`, the `from_formats`
@@ -181,7 +204,7 @@ service-datamodel surface.
181
204
  `_build_extension_to_format_map()`:
182
205
 
183
206
  ```
184
- https://github.com/docling-project/docling/blob/v2.148.0/docling/service_client/client.py#L906
207
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/service_client/client.py#L906
185
208
  ```
186
209
 
187
210
  - `ResponseFormat` gained `SURYA_HTML` (Surya OCR 2.5), `UNLIMITED_OCR2`,
@@ -189,7 +212,7 @@ service-datamodel surface.
189
212
  `VlmModelLocal.response_format` and `VlmModelApi.response_format`:
190
213
 
191
214
  ```
192
- https://github.com/docling-project/docling/blob/v2.148.0/docling/datamodel/pipeline_options_vlm_model.py#L104
215
+ https://github.com/docling-project/docling/blob/v2.149.0/docling/datamodel/pipeline_options_vlm_model.py#L120
193
216
  ```
194
217
 
195
218
  The TypeScript `VlmResponseFormat` (alias `ResponseFormat`) union and the
@@ -209,7 +232,7 @@ service-datamodel surface.
209
232
  Python v2.147.0 at commit `e3681a6` formally exposes `artifact_url_allowlist` and `_allow_private_artifact_urls` in `DoclingServiceClient.__init__`:
210
233
 
211
234
  ```
212
- 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
213
236
  ```
214
237
 
215
238
  TypeScript fully supports these options:
@@ -232,7 +255,7 @@ with no service-client or service-datamodel surface.
232
255
  - `ArtifactRef.artifact_type` now allows `"chunks"`:
233
256
 
234
257
  ```
235
- 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
236
259
  ```
237
260
 
238
261
  The TypeScript `ArtifactType` union includes `'chunks'` and the presigned
@@ -246,7 +269,7 @@ with no service-client or service-datamodel surface.
246
269
  status and appends the presigned detail:
247
270
 
248
271
  ```
249
- 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
250
273
  ```
251
274
 
252
275
  TypeScript `combineInBodyFallbackError()` mirrors this and throws a
@@ -271,7 +294,7 @@ behavior with no service-client or service-datamodel surface.
271
294
  download name for the archive:
272
295
 
273
296
  ```
274
- 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
275
298
  ```
276
299
 
277
300
  The TypeScript `ZipArchiveResult` interface exposes `filename?: string | null`.
@@ -283,7 +306,7 @@ behavior with no service-client or service-datamodel surface.
283
306
  the effective range differs from the merged options:
284
307
 
285
308
  ```
286
- 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
287
310
  ```
288
311
 
289
312
  TypeScript `applyPageLimits()` mirrors this: with no `page_range`, `pageRange`,
@@ -309,7 +332,7 @@ Python v2.141.0 to use an internal `_run_bounded()` helper from
309
332
  `docling/service_client/_scheduler.py` for bounded concurrency fan-out:
310
333
 
311
334
  ```
312
- 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
313
336
  ```
314
337
 
315
338
  The TypeScript scheduler already implements equivalent bounded-concurrency
@@ -321,7 +344,7 @@ changes are needed; this is a pure internal refactoring on the Python side.
321
344
  `ConfidenceScores` gained a recursive `pages` field in Python v2.139.0:
322
345
 
323
346
  ```
324
- 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
325
348
  ```
326
349
 
327
350
  When present, it maps 1-based page numbers to per-page `ConfidenceScores`
@@ -339,7 +362,7 @@ objects. The TypeScript `ConfidenceScores` interface includes the
339
362
  `content` to `document` in Python v2.133.0:
340
363
 
341
364
  ```
342
- 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
343
366
  ```
344
367
 
345
368
  Pydantic continues to serialize the field as `content` on the wire via