docges-api-py 0.1.3__tar.gz → 0.1.4__tar.gz

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.
Files changed (30) hide show
  1. {docges_api_py-0.1.3/src/docges_api_py.egg-info → docges_api_py-0.1.4}/PKG-INFO +1 -1
  2. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/pyproject.toml +1 -1
  3. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/client.py +9 -4
  4. {docges_api_py-0.1.3 → docges_api_py-0.1.4/src/docges_api_py.egg-info}/PKG-INFO +1 -1
  5. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/LICENSE +0 -0
  6. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/README.md +0 -0
  7. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/setup.cfg +0 -0
  8. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/__init__.py +0 -0
  9. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/__init__.py +0 -0
  10. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/auth.py +0 -0
  11. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/document.py +0 -0
  12. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/requests.py +0 -0
  13. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/responses.py +0 -0
  14. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/SOURCES.txt +0 -0
  15. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/dependency_links.txt +0 -0
  16. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/requires.txt +0 -0
  17. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/top_level.txt +0 -0
  18. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_client_auth.py +0 -0
  19. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_content_methods.py +0 -0
  20. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_endpoints.py +0 -0
  21. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_examples.py +0 -0
  22. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_get_document.py +0 -0
  23. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_initial_cats.py +0 -0
  24. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_auth.py +0 -0
  25. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_init.py +0 -0
  26. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_requests.py +0 -0
  27. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_responses.py +0 -0
  28. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_remaining_methods.py +0 -0
  29. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_retry.py +0 -0
  30. {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_token_refresh.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docges-api-py
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Async, typed Python client for DocGes REST API
5
5
  Author-email: "ct.galega" <soporte@ctgalega.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "docges-api-py"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Async, typed Python client for DocGes REST API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -203,11 +203,16 @@ class AsyncDocGes:
203
203
  if self._login_response is not None:
204
204
  request_model["loginResponse"] = self._login_response
205
205
 
206
- # Merge endpoint-specific data
206
+ # Build final payload: extra data fields (contenidoModel, fileModel, etc.)
207
+ # go at TOP LEVEL alongside requestModel — NOT nested inside requestModel.
208
+ # This matches the server's RequestContentModel: { contenidoModel, requestModel }.
209
+ payload: dict[str, Any] = {"requestModel": request_model}
207
210
  if data is not None:
208
- request_model.update(data.model_dump(exclude_none=True))
209
-
210
- payload = {"requestModel": request_model}
211
+ extra = data.model_dump(exclude_none=True)
212
+ # If data itself has a requestModel key, merge it into the top-level one
213
+ if "requestModel" in extra:
214
+ request_model.update(extra.pop("requestModel"))
215
+ payload.update(extra)
211
216
 
212
217
  last_exc: Exception | None = None
213
218
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docges-api-py
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Async, typed Python client for DocGes REST API
5
5
  Author-email: "ct.galega" <soporte@ctgalega.com>
6
6
  License: MIT
File without changes
File without changes
File without changes